/* TV host. One fixed 1920×1080 stage; every px value below is a stage px. */

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #120d08;
  font-family: var(--font-body);
  color: var(--ink);
}

.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--night-deep); /* the studio or the atlas always covers it (D-SPEC1) */
  transform-origin: center;
}

.stage__canvas {
  position: absolute;
  inset: 0;
  width: 1920px;
  height: 1080px;
}

.ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ui--ghost, .ui--ghost * { pointer-events: none !important; animation: none !important; transition: none !important; } /* MAPFINISH4: main.js crossfade */
.ui > * {
  pointer-events: auto;
}

/* ── paper tags ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px 10px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--t-min);
  letter-spacing: 0.02em;
  box-shadow: 0 6px 0 var(--ink);
}

.tag--kraft {
  background: var(--kraft);
}
.tag--paper {
  background: var(--paper);
}
.tag--ink {
  background: var(--ink);
  color: var(--yellow);
}
.tag--red {
  background: var(--red);
  color: var(--paper);
}
.tag--yellow {
  background: var(--yellow);
}
.tag--blue {
  background: var(--blue);
  color: var(--paper);
}

.topbar {
  position: absolute;
  top: 26px;
  left: 40px;
  right: 40px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar[hidden],
.hud[hidden],
.hint[hidden] {
  display: none;
}

/* ── lobby ── */
.lobby {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 640px minmax(0, 1fr);
  gap: 50px;
  padding: 70px 80px;
}

.lobby__join {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  text-align: center;
  transform: rotate(-1.5deg);
}

.logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: 118px;
  line-height: 0.9;
  color: var(--red);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink);
}

.logo span {
  color: var(--yellow);
}

.lobby__qr {
  width: 330px;
  height: 330px;
  margin: 26px 0 14px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: #fff;
  image-rendering: pixelated;
}

.lobby__url {
  max-width: 100%;
  font-size: var(--t-min);
  font-weight: 800;
  overflow-wrap: anywhere; /* a long PUBLIC_URL wraps inside the card, never past it */
}

.lobby__code {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--blue);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.lobby__teams {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* the lobby sits over the living-map video (D82): every control and the join prompt stand on
   solid paper plates — never bare text on moving art, never a see-through disabled button */
.lobby__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  padding: 16px 18px 20px;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 8px 0 var(--kraft-dark), 0 8px 0 5px var(--ink);
}
.lobby__head > span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lobby__head .btn {
  white-space: nowrap;
}
.lobby__head > .presets {
  order: 3;
  flex-basis: 100%;
  flex-wrap: wrap; /* nowrap pushed the start button off the 1920 stage once v3/news/venue joined the row */
}
.lobby__head .lobby__venue {
  width: 180px;
}
.lobby__head .btn:not(.btn--ghost) {
  padding: 10px 30px 14px;
  font-size: 34px;
}
.lobby__head .btn[disabled] {
  filter: none;
  opacity: 1;
  background: var(--kraft);
  color: var(--kraft-deep);
  box-shadow: 0 6px 0 var(--kraft-dark), 0 6px 0 5px var(--ink);
}

.lobby__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  gap: 18px;
  align-content: start;
}

.teamcard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 4px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  box-shadow:
    0 7px 0 var(--team, var(--kraft-dark)),
    0 7px 0 4px var(--ink);
  animation: pop 420ms var(--ease-out) both;
}

.teamcard img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.teamcard b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-min);
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teamcard small {
  font-size: var(--t-min);
  font-weight: 700;
  opacity: 0.7;
}

.teamcard.is-away {
  opacity: 0.45;
}

/* the join prompt: an ink plate low on the stage, clear of the map's centre */
.lobby__empty {
  justify-self: center;
  align-self: end;
  margin-top: 520px;
  padding: 14px 40px 20px;
  border: 5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 54px;
  text-align: center;
  box-shadow: 0 8px 0 var(--kraft-deep);
  transform: rotate(-1deg);
}

.btn {
  padding: 16px 40px 20px;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 40px;
  cursor: pointer;
  box-shadow:
    0 9px 0 var(--green-dark),
    0 9px 0 5px var(--ink);
  transition:
    transform 140ms var(--ease-out),
    box-shadow 140ms var(--ease-out);
}

.btn:active {
  transform: translateY(7px);
  box-shadow:
    0 2px 0 var(--green-dark),
    0 2px 0 5px var(--ink);
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  font-size: var(--t-min);
  padding: 10px 22px 12px;
  box-shadow:
    0 6px 0 var(--kraft-dark),
    0 6px 0 5px var(--ink);
}

.btn[disabled] {
  filter: grayscale(1);
  opacity: 0.55;
  cursor: default;
}

/* ── centre cards: intro, fork, results ── */
.center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 120px 100px 190px;
}

.intro {
  width: 1100px;
  padding: 50px 70px 60px;
  text-align: center;
  transform: rotate(-1deg);
  animation: drop 520ms var(--ease-out) both;
}

.intro-stage {
  background: var(--kraft) center / cover no-repeat;
}
.intro-stage .intro {
  /* the title card's object lives in its left third; Tele owns the bottom-right corner */
  justify-self: start;
  width: 840px;
  margin-left: 440px;
}

/* D81: papercraft station icon (art/stations), never an emoji */
.intro__icon {
  display: block;
  width: 168px;
  height: 168px;
  margin: 0 auto;
  object-fit: contain;
}
.tag img,
.btn__icon {
  width: 1.3em;
  height: 1.3em;
  object-fit: contain;
  vertical-align: -0.3em;
}
.btn__icon {
  margin-right: 8px;
}

.intro h1 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-size: 120px;
  line-height: 0.95;
  color: var(--red);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}

.intro p {
  margin: 0 auto;
  max-width: 900px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
}

.intro__tags {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.fork {
  width: 1640px;
  text-align: center;
}

.fork h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 110px;
  color: var(--paper);
  -webkit-text-stroke: 5px var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--ink);
}

.fork__who {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 34px;
  font-size: 34px;
}

/* the chosen route's banner takes the heading's place */
.fork.is-chosen h1 {
  visibility: hidden;
}

.fork__who img {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.fork__routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.route {
  overflow: hidden;
  padding: 0 0 26px;
  transition:
    transform 460ms var(--ease-out),
    opacity 300ms ease,
    filter 300ms ease;
  animation: drop 520ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms);
}

.route:nth-child(1) {
  transform: rotate(-2deg);
}
.route:nth-child(2) {
  transform: rotate(1.5deg);
}

.route__art {
  height: 300px;
  border-bottom: 5px solid var(--ink);
  background-size: cover;
  background-position: center 70%;
}

.route h2 {
  margin: 18px 0 6px;
  font-family: var(--font-display);
  font-size: 64px;
}

.route p {
  margin: 0;
  font-size: var(--t-min);
  font-weight: 800;
}

.route.is-chosen {
  transform: scale(1.06) rotate(0deg);
}
.route.is-rejected {
  opacity: 0.35;
  filter: grayscale(0.8);
  transform: scale(0.94);
}

/* ── Rocket Rally ── */
.rally__card {
  position: absolute;
  top: 96px;
  left: 50%;
  width: 1560px;
  padding: 18px 36px 22px;
  transform: translateX(-50%);
  transform-origin: top center;
  transition:
    transform 520ms var(--ease-out),
    opacity 300ms ease;
}

.rally__card.is-away {
  transform: translateX(-50%) translateY(-130%);
  opacity: 0;
}

.rally__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: var(--t-min);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--kraft-deep);
}

.rally__q {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
}

.rally__opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
}

.opt {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 18px 10px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  font-size: 36px;
  font-weight: 900;
  transition:
    transform 300ms var(--ease-out),
    opacity 300ms ease,
    background-color 200ms ease;
}

.opt i {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  height: 58px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 36px;
  font-style: normal;
}

.opt:nth-child(1) i {
  background: var(--red);
}
.opt:nth-child(2) i {
  background: var(--blue);
}
.opt:nth-child(3) i {
  background: var(--yellow);
  color: var(--ink);
}
.opt:nth-child(4) i {
  background: var(--green);
}

.opt.is-right {
  background: #cdeccf;
  transform: scale(1.04);
}

.opt.is-wrong {
  opacity: 0.35;
}

.timer {
  height: 16px;
  margin-top: 14px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}

.timer i {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: left center;
  transition: transform 1000ms linear;
}

/* HUD / seat / chip rules moved to the P02 chips block at the end of this file */

/* ── results ── */
.podium {
  width: 1200px;
  padding: 40px 60px 50px;
  text-align: center;
  animation: drop 520ms var(--ease-out) both;
}

.podium h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 84px;
  color: var(--blue);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}

.podium ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.podium li {
  display: grid;
  grid-template-columns: 70px 80px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 24px 8px 12px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
  font-size: 36px;
  font-weight: 900;
  text-align: left;
  animation: pop 420ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 70ms + 200ms);
}

.podium li.is-top {
  background: #ffe9a8;
}
.podium li:has(small) {
  grid-template-columns: 70px 80px 1fr auto auto;
}
.podium li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.podium li small {
  font-family: var(--font-display);
  font-size: var(--t-min);
  color: var(--ink);
  opacity: 0.6;
}
.podium__page {
  min-height: 1em;
  margin: 14px 0 0;
  font-size: var(--t-min);
  font-weight: 900;
}
.podium__page:empty {
  display: none;
}
.podium__again {
  margin: 22px 0 0;
}
.podium li img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.podium li em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 44px;
}
.podium li strong {
  font-family: var(--font-display);
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--green-dark);
}
.podium li strong.is-neg {
  color: var(--red-dark);
}

.winner img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

/* big rooms: two columns of six, paged — 40 teams, every one findable from the sofa */
.podium:has(ol[data-dense]) {
  width: 1700px;
  padding: 24px 40px 28px;
}
.podium:has(ol[data-dense]) h1 {
  margin-bottom: 14px;
  font-size: 60px;
}
.center:has(ol[data-dense]) {
  padding-bottom: 140px;
}
.center:has(.winner ol[data-dense]) {
  padding-bottom: 40px;
}
.winner:has(ol[data-dense]) > img {
  width: 120px;
  height: 120px;
}
.podium ol[data-dense] {
  grid-template-rows: repeat(6, auto);
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  gap: 10px 24px;
}
.podium ol[data-dense] li {
  padding: 4px 20px 4px 10px;
  font-size: var(--t-min);
  /* big rooms: rows are solid from the first frame (pop starts at opacity 0), quick stagger */
  animation-name: pop-solid;
  animation-delay: calc(var(--i) * 30ms);
}
.podium ol[data-dense] li img {
  width: 56px;
  height: 56px;
}

/* ── banner + hint ── */
.banner {
  position: absolute;
  top: 300px; /* above the action band, below the question card's title line */
  left: 50%;
  z-index: 9;
  padding: 18px 60px 24px;
  border: 6px solid var(--ink);
  border-radius: 28px;
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 96px;
  white-space: nowrap;
  box-shadow:
    0 12px 0 var(--yellow-dark),
    0 12px 0 6px var(--ink);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9) rotate(-3deg);
  transition:
    opacity 220ms ease,
    transform 420ms var(--ease-out);
  pointer-events: none;
}

.banner.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-3deg);
}
/* the convoy's beat banners sit in the lane board's empty top-right (x 1300–1890), off the question card and the claw */
.banner--board {
  top: 330px;
  left: 1595px;
  padding: 12px 36px 16px;
  font-size: 52px;
}

/* D-S006: ZADNJI POZIV · 5 (on --red-dark) and the full-house count chip, both in the top band. D-SWEEP1: in the top bar's free
   middle (the record banner's row, x 640–1660, y 2–58 above the cards at y ≥ 64), never on the question card (at y 160 they sat on its second line) */
.banner--lastcall {
  top: 2px;
  padding: 0 34px 4px;
  border-width: 5px;
  font-size: 38px;
  line-height: 1.1;
  color: var(--paper);
  background: var(--red-dark);
  box-shadow: 0 6px 0 var(--ink);
  transform: translate(-50%, 0) scale(0.9);
  transform-origin: 50% 0;
}
.banner--lastcall.is-on { transform: translate(-50%, 0) scale(1); }
.banner--count {
  top: 6px; /* D-RV2SH S14: 2 -> 6 px, 38 -> 30 px, border 4: the pill (box + shadow) ends at y ~ 52, inside the gantry bar, never across the stage frame edge at y 62 */
  padding: 0 26px 2px;
  border-width: 4px;
  font-size: 32px; /* D-SYS3: TV floor 32 px */
  line-height: 1.1;
  background: var(--paper);
  box-shadow: 0 4px 0 var(--ink); /* D-RV2SH */
  transform: translate(-50%, 0);
}
.banner--count.is-on { transform: translate(-50%, 0); }

/* record banners live in the top bar's free middle-right, never over the question or answers */
.banner--record {
  top: 10px; /* P15B: the strip's own row (x 640–1660), never over a game's rail, slips or answer */
  left: 660px;
  right: auto;
  max-width: 1020px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px 28px 10px;
  border-width: 5px;
  font-size: 36px;
  transform: scale(0.9) rotate(-1deg);
  transform-origin: 0 0;
}
.banner--record.is-on { transform: scale(1) rotate(-1deg); }

/* bottom-left: Tele owns the bottom-right corner (bible §3.3), the host cue must never sit under him */
.hint {
  position: absolute;
  left: 40px;
  bottom: 150px;
  z-index: 6;
  padding: 6px 18px 8px;
  border-radius: 999px;
  background: rgba(43, 33, 24, 0.78);
  color: var(--paper);
  font-size: var(--t-min);
  font-weight: 800;
  /* F4: an operator aid, not stage furniture — it shows for the first seconds of a beat, then leaves the audience's frame */
  animation: hint-away 400ms 6s forwards;
}
@keyframes hint-away {
  to {
    opacity: 0;
  }
}

@keyframes pop-solid {
  from {
    transform: scale(0.96) translateY(8px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(14px);
  }
}

@keyframes drop {
  from {
    opacity: 0;
    translate: 0 -60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teamcard,
  .intro,
  .route,
  .podium,
  .podium li {
    animation: none;
  }
}

/* big rooms: the lobby must hold 40 teams without running off the stage */
.lobby__grid[data-dense] {
  gap: 10px;
}

.lobby__grid[data-dense] .teamcard {
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-width: 3px;
  border-radius: 14px;
}

.lobby__grid[data-dense] .teamcard img {
  width: 52px;
  height: 52px;
}

.lobby__grid[data-dense] .teamcard b {
  font-size: var(--t-min);
}

.lobby__grid[data-dense] .teamcard small {
  display: none;
}

/* ── boss health ── */
.boss {
  position: absolute;
  top: 24px; /* takes the title's place in the top bar */
  left: 50%;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 760px;
  padding: 8px 20px 10px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: var(--t-min);
  color: var(--red-dark);
  transform: translateX(-50%);
  box-shadow: 0 6px 0 var(--ink);
}

.boss[hidden] {
  display: none;
}

.boss__bar {
  flex: 1;
  height: 20px;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.boss__bar i {
  display: block;
  height: 100%;
  background: var(--red);
  transform-origin: left center;
  transition: transform 700ms var(--ease-out);
}

.boss.is-down {
  color: var(--green-dark);
}

/* ── MC: pause, help, preset picker ── */
.pause {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  gap: 10px;
  background: rgba(43, 33, 24, 0.72);
  color: var(--paper);
  text-align: center;
}

.pause[hidden],
.help[hidden] {
  display: none;
}

.pause b {
  font-family: var(--font-display);
  font-size: 220px;
  font-weight: 400;
  line-height: 1;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  color: var(--yellow);
}

.pause span {
  font-size: 34px;
  font-weight: 800;
}

/* D26: the MC's connectivity list under a drop pause */
.pause small {
  max-width: 1500px;
  font-size: var(--t-min);
  font-weight: 800;
  color: var(--cream, var(--paper));
}

.help {
  position: absolute;
  right: 40px;
  top: 110px;
  z-index: 21;
  width: 560px;
  padding: 24px 34px 30px;
}

.help h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
}

.help dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 22px;
  margin: 0;
  font-size: var(--t-min);
  font-weight: 800;
}

.help dt {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--blue-dark);
}

.help dd {
  margin: 0;
}

.presets {
  display: inline-flex;
  gap: 10px;
}

.presets .btn.is-on {
  background: var(--yellow);
}

/* ── lobby: the venue's name for the night's photo ── */
.lobby__venue {
  width: 220px;
  padding: 8px 16px 10px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  font: 400 var(--t-min) var(--font-display);
  color: var(--ink);
}

/* ── Tele / Kontrola (P13 #8): one home bottom-left, x 76–560 y 700–900, over the stage floor and never over the
   ribbon; .tele--high = top-left under the strip (y 66–266) when a plate or a 72 px line holds the floor corner.
   tele.js picks the spot; small/side are kept as no-ops so old callers still work. ── */
.tele {
  position: absolute;
  left: 76px;
  top: 700px;
  width: 484px;
  height: 200px;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  transition: transform 320ms var(--ease-out), opacity 220ms var(--ease-out);
}
.tele.tele--high { top: 66px; align-items: flex-start; }
.tele.is-off {
  transform: translateX(-120px); /* back into the wing he came from; opacity carries the exit */
  opacity: 0;
}
.tele__body {
  flex: none;
  width: 150px;
  height: auto;
  margin: 0;
}
.tele__line {
  flex: 0 1 auto;
  max-width: 334px;
  margin: 0 0 34px -4px;
  padding: 10px 20px 14px;
  border-radius: 20px 20px 20px 6px;
  font: 400 var(--t-caption)/1.08 var(--font-display);
  text-align: left;
  text-wrap: balance;
  transform: rotate(-1.5deg);
}
.tele--high .tele__line { margin: 34px 0 0 -4px; border-radius: 6px 20px 20px 20px; }
.tele__line:empty { display: none; }
/* BA10 (P15B): no figure in game frames; the bubble is the voice and wears its speaker's tag */
.tele--voice .tele__body { display: none; }
.tele--voice .tele__line { position: relative; margin-top: 30px; }
.tele--voice .tele__line::before { content: attr(data-who); position: absolute; left: 14px; top: -30px; padding: 0 12px 2px; font: 400 var(--t-min)/1.15 var(--font-display); color: var(--paper); background: var(--ink); border-radius: 6px 6px 0 0; transform: rotate(1.5deg); }

/* ── the Pub Machine scene (bible §4.2): sprites at their manifest offsets on the 1920×1080 stage ── */
.mach {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.mach__base,
.mach__part,
.mach__chair,
.mach__inspector {
  position: absolute;
}
.mach__base { left: 0; top: 0; width: 1920px; height: 1080px; clip-path: inset(212px 506px 318px 506px round 16px); } /* D-SPEC1: only the machine body; the pegboard wall + floor give way to the studio */
/* the camera: everything on the bench lives in one world that leans in on the fresh bay */
.mach__world { position: absolute; inset: -30px 0 30px; will-change: transform; } /* lifted 30 px: the parts sheet fits above the audience row */
.mach__part.is-fresh { filter: drop-shadow(0 26px 14px rgba(20, 12, 4, 0.35)); }
/* D78: unbuilt slots wear blueprint covers; the round label is code, never baked */
.mach__cover { position: absolute; z-index: 1; }
.mach__cover img { display: block; width: 100%; height: 100%; }
.mach__cover b {
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0 12px 4px 0;
  color: var(--paper);
  opacity: 0.9;
  font: 400 40px/1 var(--font-display);
}
.mach__cover.is-roof b { align-items: center; justify-content: center; padding: 0; font-size: var(--t-min); }
/* light: a warm vignette over the bench, a pool of light on the bay that just got its part */
.mach__vignette {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: none; /* the studio has its own vignette */
}
.mach__spot {
  position: absolute;
  z-index: 5;
  width: 560px;
  height: 460px;
  margin: -230px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 190, 0.55), rgba(255, 236, 190, 0));
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
}
.mach__stamp {
  position: absolute;
  z-index: 8;
  padding: 4px 22px 8px;
  border: 7px solid currentColor;
  border-radius: 14px;
  background: rgba(255, 250, 240, 0.9);
  font: 400 48px/1 var(--font-display);
  white-space: nowrap;
  translate: -50% -50%;
}
.mach__stamp.is-neat { color: var(--green-dark); }
.mach__stamp.is-crooked { color: var(--ink); background: var(--yellow); }
.mach__stamp.is-smoking { color: var(--red-dark); }
.mach__scrap { position: absolute; z-index: 8; width: 30px; height: 18px; margin: -9px 0 0 -15px; border: 3px solid var(--ink); }
/* G12 discovery plaques under the hopper's rim (D68), drawn the same way on the photo */
.mach__plaque {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 186px;
  padding: 4px 6px 4px 12px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 6px 0 rgba(43, 33, 24, 0.3);
  font: 900 var(--t-min)/1.05 var(--font-body);
  translate: -50% 0;
  rotate: var(--rot, 0deg);
}
/* a two-word answer ("Plitvička jezera") takes two lines instead of an ellipsis */
.mach__plaque span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mach__plaque b {
  flex: none;
  min-width: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 400 var(--t-badge)/34px var(--font-display);
  text-align: center;
}
/* the build sheet on the bench: seven tickets in round order */
.mach__sheet {
  position: absolute;
  top: 800px;
  left: 830px; /* clear of Tele's corner on the right */
  z-index: 6;
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 12px 14px 14px;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 10px 0 rgba(43, 33, 24, 0.3);
  list-style: none;
  transform: translateX(-50%) rotate(-0.6deg);
}
.mach__sheet li.mach__sheet-head { min-width: 0; padding: 6px 8px 8px 2px; border: 0; box-shadow: none; }
.mach__sheet:not(.mach__sheet--v3) li.mach__sheet-head { flex: none; min-width: max-content; white-space: nowrap; } /* D-NQA83: RAKETA 1 / 7 stays on one line on the home bench */
.mach__sheet li {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 122px;
  padding: 6px 10px 8px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(43, 33, 24, 0.3);
  line-height: 1;
}
.mach__sheet small { font: 800 var(--t-min)/1 var(--font-body); }
.mach__sheet b { font: 400 34px/1.05 var(--font-display); }
.mach__sheet .is-todo { border: 4px dashed var(--blue-dark); background: var(--cream); color: var(--blue-dark); box-shadow: none; }
.mach__sheet .is-neat { background: var(--yellow); }
.mach__sheet .is-crooked { background: var(--paper); transform: rotate(-3deg); }
.mach__sheet .is-smoking { background: var(--soot, #3a2f28); color: var(--paper); }
.mach__sheet .is-fresh { outline: 5px solid var(--paper); outline-offset: 3px; }
.mach__sheet--v3 { top: 700px; left: 960px; width: 1700px; display: grid; grid-template-columns: 150px repeat(6, 1fr); gap: 12px; }
.mach__sheet--v3 .mach__sheet-head { grid-row: span 2; justify-content: center; }
.mach__sheet--v3 li { min-width: 0; min-height: 76px; justify-content: center; gap: 5px; }
.mach__sheet--v3 small { font-size: var(--t-min); }
.mach__sheet--v3 b { font-size: var(--t-min); }
.mach__extra { position: absolute; left: 50px; top: 130px; display: grid; grid-template-columns: 260px 260px; gap: 22px; }
.mach__extra-card { padding: 16px; text-align: center; transform: rotate(-1deg); }
.mach__extra-card small { font: 800 var(--t-min) var(--font-body); }
.mach__extra-card h2 { font: 400 34px var(--font-display); margin: 8px 0; }
.mach__extra-card .tag { font-size: var(--t-min); }
.mach__extra-card.is-todo { border-style: dashed; color: var(--blue-dark); background: var(--cream); }
.mach__extra-card.is-neat { background: var(--yellow); }
.mach__extra-card.is-smoking { background: var(--soot, #3a2f28); color: var(--paper); }
.mach__inspector { z-index: 4; }
.mach__inspector img { position: absolute; left: 50%; bottom: -6px; height: 104%; transform: translateX(-50%); }
.mach__rivet {
  position: absolute;
  z-index: 6;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
}
.mach__grab {
  position: absolute;
  top: 0;
  left: 1110px; /* over the claw boom: the arm she wants back */
  z-index: 7;
  width: 280px;
  transform-origin: 50% 0;
}
.mach__grab i {
  display: block;
  width: 22px;
  height: 640px;
  margin: 0 auto -4px;
  background: url(../art/grabilica/cable.png) center top / 22px auto repeat-y;
}
.mach__grab img { display: block; width: 280px; }
.mach__card {
  position: absolute;
  top: 120px;
  right: 130px;
  z-index: 6;
  width: 400px;
  padding: 18px 28px 26px;
  text-align: center;
  transform: rotate(1.5deg);
}
.mach__card small { font: 800 var(--t-min) var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; }
.mach__card h2 { margin: 4px 0 6px; font: 400 60px/1 var(--font-display); color: var(--red); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.mach__card p { margin: 0 0 12px; font: 800 var(--t-min) var(--font-body); }
.mach__card b { font-family: var(--font-display); font-weight: 400; }
.mach__quality { font-size: var(--t-min); white-space: nowrap; transform: rotate(-3deg); }
.mach__quality[hidden] { display: none; }
.mach__sab {
  position: absolute;
  top: 120px;
  left: 130px;
  z-index: 6;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px 18px;
  width: 460px;
  padding: 20px 24px 26px;
  transform: rotate(-1.5deg);
}
.mach__who { position: relative; }
.mach__who img {
  width: 120px;
  height: 120px;
  padding: 6px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--team, var(--paper));
  object-fit: contain;
}
.mach__who b {
  position: absolute;
  right: -6px;
  bottom: -4px;
  min-width: 44px;
  border: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font: 400 var(--t-badge)/1.1 var(--font-display);
  text-align: center;
}
.mach__ask { align-self: center; }
.mach__ask small { font: 800 var(--t-min) var(--font-body); text-transform: uppercase; }
.mach__ask h3 { margin: 2px 0 0; font: 400 40px/1.05 var(--font-display); overflow-wrap: break-word; }
.mach__sides { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mach__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px 14px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  background: var(--kraft);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--kraft-deep), 0 6px 0 4px var(--ink);
  font: inherit;
  transition: transform 200ms var(--ease-out);
}
.mach__side b { font: 400 36px/1 var(--font-display); }
.mach__side small { font: 800 var(--t-min) var(--font-body); }
.mach__side.is-wrong small { color: var(--red-dark); }
.mach__side.is-on { background: var(--yellow); transform: translateY(-6px) scale(1.04); }
.mach__sides:has(.is-on) .mach__side:not(.is-on) { opacity: 0.4; }
.mach__clock {
  grid-column: 1 / -1;
  height: 12px;
  border: 3px solid var(--ink);
  border-radius: 99px;
  background: var(--paper);
  overflow: hidden;
}
.mach__clock i { display: block; height: 100%; background: var(--red); transform-origin: left center; }
/* D-NQA90: the pick's seconds, a stamped paper disc pinned to the card's corner */
.mach__count { position: absolute; right: -28px; top: -30px; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border: 5px solid var(--ink); border-radius: 50%; box-sizing: border-box; background: var(--paper-grain), var(--paper); box-shadow: 5px 6px 0 rgba(20, 18, 16, 0.9); font: 400 60px/1 var(--font-display); color: var(--ink); }
.mach__count:empty { display: none; }
.mach:not(.dio) .mach__count { top: -50px; right: -48px; } /* the legacy card: clear of its "IGRAČ 04 BIRA" line */
.mach__count.is-last { background: var(--paper-grain), var(--yellow); color: var(--red-dark); }

/* ── end of the night: the photo frame on the TV ── */
.photo-view { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.photo-view__frame { padding: 14px; transform: rotate(-1deg); }
.photo-view__frame canvas { display: block; width: 1184px; height: 666px; border-radius: 12px; }
.photo-view__hint { display: flex; align-items: center; gap: 18px; margin: 0; font: 400 34px var(--font-display); }

@media (prefers-reduced-motion: reduce) {
  .tele { transition: none; }
}

/* #16: every seat carries the team's number, the same as the ribbon chips above 8 teams */
.seat__no { position: absolute; left: -10px; top: -12px; min-width: 34px; padding: 0 5px; border: 3px solid var(--ink); border-radius: 10px; background: var(--paper); font: 400 calc(26px * var(--hud-scale, 1)) / 1.15 var(--font-display); font-style: normal; text-align: center; color: var(--ink); }

/* the fullscreen button is only for a windowed TV */
:fullscreen #lobby-fs {
  display: none;
}

/* ── results cards A + B (NIGHT §5.2–5.3, D-S002): opaque card x 160–1760, y 130–910 ── */
.rc { position: absolute; inset: 0; }
.rc-card {
  position: absolute; left: 160px; top: 104px; width: 1600px; height: 756px; box-sizing: border-box;
  padding: 28px 60px 28px; border: 6px solid var(--ink); border-radius: 28px; background: var(--cream);
  animation: drop 520ms var(--ease-out) both;
}
.rc-pill {
  display: inline-block; padding: 6px 26px 8px; border: 4px solid var(--ink); border-radius: 999px;
  background: var(--teal, #1f7a78); color: var(--paper); font: 400 36px/1.1 var(--font-display); letter-spacing: .02em;
}
.rc-nobody { margin: 220px 0 0; text-align: center; font: 400 56px/1.15 var(--font-display); color: var(--ink); }
.rc-win { position: absolute; left: 60px; top: 120px; width: 680px; text-align: center; }
.rc-win__face { position: relative; width: 320px; height: 320px; margin: 0 auto; }
.rc-win__face img { width: 320px; height: 320px; }
.rc-no {
  position: absolute; right: 8px; top: 8px; min-width: 48px; padding: 2px 8px; border: 4px solid var(--ink); border-radius: 999px;
  background: var(--paper); font: 900 var(--t-badge)/1.2 var(--font-body); font-style: normal; color: var(--ink);
}
.rc-win__name { margin: 8px 0 0; font: 400 84px/1.05 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.rc-win__name.is-long { font-size: 56px; }
.rc-win__pts { display: block; font: 400 120px/1 var(--font-display); color: var(--green-dark); }
.rc-runners { position: absolute; left: 820px; top: 140px; width: 720px; }
.rc-runners h3 { margin: 0 0 12px; font: 900 var(--t-min)/1.2 var(--font-body); color: var(--kraft-deep); }
.rc-runner { display: grid; grid-template-columns: 80px 96px 1fr auto; gap: 18px; align-items: center; height: 120px; font: 400 44px/1 var(--font-display); color: var(--ink); }
.rc-runner img { width: 96px; height: 96px; }
.rc-runner em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-tie { display: flex; justify-content: center; gap: 60px; margin-top: 60px; }
.rc-tie__one { width: 380px; text-align: center; }
.rc-tie__one img { width: 240px; height: 240px; }
.rc-tie__one h2 { margin: 8px 0 0; font: 400 56px/1.1 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.rc-tie__pts { text-align: center; margin-top: 10px; }
.rc-many { margin: 120px 0 30px; text-align: center; font: 400 56px/1.15 var(--font-display); color: var(--ink); }
.rc-many__faces { display: flex; justify-content: center; align-items: center; gap: 24px; font: 900 36px/1 var(--font-body); }
.rc-many__faces img { width: 120px; height: 120px; }
.rc-hl { position: absolute; left: 60px; right: 60px; top: 690px; margin: 0; text-align: center; font: 900 36px/1.3 var(--font-body); color: var(--ink); }
.rc-stamp { animation: pop 420ms var(--ease-out) 260ms both; }

.rc-list { margin: 14px 0 0; padding: 0; list-style: none; }
.rc-row {
  display: grid; grid-template-columns: 110px 60px 1fr 110px 140px 220px; gap: 16px; align-items: center;
  height: 64px; margin-bottom: 6px; padding: 0 20px; border: 4px solid var(--ink); border-radius: 18px; background: var(--paper);
  font: 400 44px/1 var(--font-display); color: var(--ink);
}
.rc-row img { width: 60px; height: 60px; }
.rc-row em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-row small { font: 900 var(--t-min)/1 var(--font-body); color: var(--kraft-deep); text-align: right; }
.rc-row b { font: 400 56px/1 var(--font-display); text-align: right; }
.rc-row.is-lead { background: var(--yellow); }
.rc-move { font: 900 var(--t-min)/1 var(--font-body); font-style: normal; color: var(--kraft-deep); text-align: center; }
.rc-move.is-up { color: var(--green-dark); }
.rc-move.is-down { color: var(--red-dark); }
.rc-cols { display: grid; grid-template-columns: 940px 1fr; gap: 60px; margin-top: 12px; }
.rc-col h3 { margin: 0; font: 900 var(--t-min)/1.2 var(--font-body); color: var(--kraft-deep); }
.rc--dense .rc-row { grid-template-columns: 100px 76px 1fr 90px 200px; height: 82px; }
.rc--dense .rc-row small { display: none; }
.rc--dense .rc-row img { width: 72px; height: 72px; }
.rc-row.is-big .rc-row__place { font-size: 56px; }
.rc-mover { display: grid; grid-template-columns: 130px 72px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; margin-top: 18px; color: var(--ink); }
.rc-mover b { grid-row: span 2; font: 400 56px/1 var(--font-display); color: var(--green-dark); }
.rc-mover img { grid-row: span 2; width: 72px; height: 72px; }
.rc-mover em { font: 900 36px/1.1 var(--font-body); font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-mover small { font: 900 var(--t-min)/1.1 var(--font-body); color: var(--kraft-deep); }
.rc-band {
  position: absolute; left: 60px; right: 60px; bottom: 20px; display: flex; justify-content: space-between; align-items: center;
  margin: 0; font: 900 36px/1.2 var(--font-body); color: var(--ink);
}
.rc-band small { font: 900 var(--t-min)/1.2 var(--font-body); color: var(--kraft-deep); }
@media (prefers-reduced-motion: reduce) { .rc-card, .rc-stamp { animation: none; } }

/* ── studio (D-SPEC1, js/host/studio.js): wall → flat → house → frame → dim → cones | canvas, game DOM | vignette ── */
.studio,
.studio > *,
.studio__spot,
.studio__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.studio[hidden],
.studio__spot[hidden],
.studio__vignette[hidden],
.studio__flat[hidden] {
  display: none;
}
.studio__wall {
  background:
    radial-gradient(3px 3px at 14% 22%, #f6ecd8cc 50%, transparent 52%),
    radial-gradient(2px 2px at 30% 12%, #f6ecd899 50%, transparent 52%),
    radial-gradient(3px 3px at 72% 18%, #f6ecd8cc 50%, transparent 52%),
    radial-gradient(2px 2px at 86% 30%, #f6ecd899 50%, transparent 52%),
    radial-gradient(3px 3px at 22% 48%, #f6ecd877 50%, transparent 52%),
    radial-gradient(2px 2px at 80% 52%, #f6ecd877 50%, transparent 52%),
    radial-gradient(70% 60% at 50% 42%, #2b3766 0%, var(--night) 48%, var(--night-deep) 100%);
}
.studio__flat {
  inset: 62px 128px 246px;
  width: 1664px;
  height: 772px;
  object-fit: cover;
  object-position: 50% 62%;
}
.studio__frame {
  width: 1920px;
  height: 1080px;
}
/* --house-lights: the set's own brightness (0.25 dark pub … 0.70 bright pub); cards are never dimmed */
.studio__house {
  background: radial-gradient(62% 68% at 50% 50%, rgba(10, 12, 28, 0.72), rgba(6, 8, 20, 0.97) 100%);
  opacity: calc(1.4 - var(--house-lights, 0.45) * 1.3);
}
.studio__dim {
  background: #05070f;
  opacity: 0;
}
.studio__cones {
  contain: strict; /* D-PLSMOOTH1: no blend, no CSS filter — a static bitmap layer, so nothing above it repaints the stage */
}
/* the cones are canvases (studio.js drawCone): the same clipped gradient and floor pool, blurred once at draw time instead of a
   live filter: blur(10px) inside a mix-blend-mode: screen layer (owner's live trace: that pair held the TV at 30 fps) */
.studio__cone {
  position: absolute;
  inset: 96px auto auto 0;
  width: 728px;
  height: 788px;
  margin-left: -24px;
  opacity: 0;
}
.studio__cone:nth-child(1) { left: 245px; }
.studio__cone:nth-child(2) { left: 620px; }
.studio__cone:nth-child(3) { left: 990px; }
.studio__cone.is-lit { opacity: 1; }
/* the lamps breathe (was a GSAP tween writing opacity every frame): a compositor animation, -4 % over 6 s */
.studio:not(.is-wash) .studio__cone.is-lit { animation: studio-breath 6s ease-in-out infinite; }
@keyframes studio-breath { 0%, 100% { opacity: 1; } 50% { opacity: 0.96; } }
@media (prefers-reduced-motion: reduce) { .studio .studio__cone.is-lit { animation: none; } }
.studio__spot {
  inset: 0 auto auto 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--cone-rgb, 255, 226, 150), 0.38), rgba(var(--cone-rgb, 255, 226, 150), 0.14) 60%, transparent);
  opacity: 0; /* D-PLSMOOTH1: plain alpha, no screen blend over the live canvas and game DOM (a full-stage repaint per frame) */
  will-change: transform, opacity;
}
.studio__vignette {
  background: radial-gradient(90% 80% at 50% 48%, transparent 58%, rgba(5, 7, 16, 0.55) 100%);
}
/* on the studio a card stands on the stage: the scene draws its cast shadow (PB: sprites ship without one) */
.is-studio .card {
  box-shadow: 0 10px 0 var(--kraft-dark), 0 10px 0 5px var(--ink), 0 34px 56px rgba(0, 0, 0, 0.55);
}

/* D-BRAND1: the status strip's rocket mark (the strip is #top-world, §1.11) */
.strip__mark { height: 46px; margin: -8px 2px -8px -8px; }

/* D-BRAND1: the KARTONAUT badge lockup heads the join card; the venue is the header's largest word */
.lobby__logo { display: block; width: 480px; height: auto; margin: -6px auto 0; }
.lobby__tagline { margin: 2px 0 0; font-size: var(--t-min); font-weight: 800; color: var(--ink); }
.lobby__venue-name { order: 4; margin-left: auto; font-family: var(--font-display); font-size: 72px; font-weight: 400; line-height: 1; color: var(--ink); white-space: nowrap; }
.lobby__rocket { order: 4; }
.intro__mark { height: 1em; margin-right: 0.25em; vertical-align: -0.12em; }
.intro__tags .tag img { height: 44px; }

/* D-BRAND1: "Dio stiže" on the rocket's kit sheet (v3). The hero rocket stands centre-top, the
   punch-out sheet holds the twelve cells; the counter on the sheet is the strip's exact string. */
.mach--kit .kit__rocket { position: absolute; left: 50%; top: 70px; z-index: 2; height: 400px; transform: translateX(-50%); filter: drop-shadow(0 18px 14px rgba(20, 12, 4, 0.45)); }
.mach--kit .kit { position: absolute; left: 150px; right: 150px; top: 456px; z-index: 3; padding: 14px 22px 18px; background: var(--kit-card, #f3e7cf); }
.kit__count { position: absolute; left: 50%; top: -34px; transform: translateX(-50%) rotate(-1.5deg); padding: 6px 26px 10px; border: 4px solid var(--ink); border-radius: 14px; background: var(--ink); color: #f3e7cf; font: 400 46px/1 var(--font-display); white-space: nowrap; }
.kit__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px 14px; margin: 0; padding: 0; list-style: none; }
.kit__cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.kit__cell img { height: 128px; width: auto; }
.kit__cell b { font: 400 var(--t-min)/1.05 var(--font-display); color: var(--ink); white-space: nowrap; }
.kit__cell.is-todo img { opacity: 0.35; filter: grayscale(0.7); }
.kit__cell.is-todo b { opacity: 0.55; }
.kit__cell.is-fresh { z-index: 4; }
.kit__cell.is-fresh img { filter: drop-shadow(0 16px 10px rgba(20, 12, 4, 0.4)); }
.kit__cell.is-crooked img { transform: rotate(-6deg); }
.kit__cell.is-smoking img { filter: sepia(0.6) brightness(0.8); }
.kit__stamp { left: 50%; top: 30px; transform-origin: center; white-space: nowrap; }
/* D-BRAND1: the Auditor's header sits between the status strip and the room code */
#boss.boss { width: 640px; }
.mach--kit .kit { padding-top: 46px; }
.kit__stamp { top: 64px; }
.mach--kit .kit { top: 444px; }
.kit__cell img { height: 116px; }
.mach--kit .kit__rocket { height: 330px; }
.mach--kit .kit { top: 410px; }
.kit__cell img { height: 132px; }
.lobby__url { white-space: nowrap; letter-spacing: -0.03em; }
/* the lobby's centrepiece: the hero rocket on its pad beside the unpunched kit sheet (SHOW_BIBLE §0.3) */
.lobby__pad { position: absolute; right: 70px; bottom: 40px; width: 1160px; height: 470px; pointer-events: none; z-index: 0; }
.lobby__kit { position: absolute; left: 0; bottom: 20px; width: 690px; transform: rotate(-2deg); filter: grayscale(0.55) drop-shadow(0 14px 12px rgba(20, 12, 4, 0.45)); opacity: 0.92; }
.lobby__hero { position: absolute; right: 30px; bottom: 0; height: 470px; filter: drop-shadow(0 18px 16px rgba(20, 12, 4, 0.5)); }
.lobby__rocket { position: absolute; left: 190px; bottom: 0; padding: 8px 28px 12px; border: 4px solid var(--ink); border-radius: 14px; background: var(--ink); color: #f3e7cf; font: 400 72px/1 var(--font-display); white-space: nowrap; transform: rotate(-2deg); }
.lobby.is-full .lobby__pad { display: none; }
.lobby__join, .lobby__teams { position: relative; z-index: 1; }
.lobby__pad { position: relative; right: auto; bottom: auto; flex: 1 1 auto; width: auto; height: auto; min-height: 0; margin-top: 10px; }
.lobby__kit { left: 20px; bottom: 10px; width: 640px; }
.lobby__hero { right: 40px; bottom: -10px; height: min(100%, 470px); }
.lobby__rocket { left: 170px; bottom: 0; }
.lobby__url { letter-spacing: -0.06em; }
/* round 3: the pad is a lit stage of its own; at 0 / 12 the rocket is the goal (a cut-out silhouette), the parts wait on the sheet */
.lobby__pad { border: 5px solid var(--ink); border-radius: 22px; background: radial-gradient(ellipse 55% 70% at 72% 40%, rgba(255, 214, 150, 0.38), transparent 70%), #2a2622; box-shadow: 0 10px 0 var(--ink), 0 30px 50px rgba(0, 0, 0, 0.5); overflow: hidden; }
.lobby__kit { filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.6)); opacity: 1; left: 24px; bottom: 70px; width: 600px; }
.lobby__hero { filter: brightness(0) invert(0.93) sepia(0.4) opacity(0.38) drop-shadow(0 0 0 #f3e7cf); right: 60px; bottom: 16px; height: min(92%, 420px); }
.lobby__goal { position: absolute; right: 120px; top: 22px; font: 400 var(--t-caption)/1 var(--font-display); font-style: normal; color: #f3e7cf; letter-spacing: 0.08em; }
.lobby__rocket { left: 150px; bottom: 16px; background: var(--red, #e0452c); }
.lobby__kit { width: 500px; bottom: 96px; left: 40px; }
.lobby__goal { right: 400px; top: 40px; }
.kit__cell.is-todo img { opacity: 0.5; }
.kit__cell.is-todo b { opacity: 0.7; }
/* CD sign-off: the lobby's verb stays up after the first table joins; badge trimmed; CILJ readable */
.lobby__verb { order: 4; font: 400 60px/1 var(--font-display); color: var(--red, #e0452c); white-space: nowrap; }
.lobby__logo { width: 440px; }
.lobby__goal { font-size: 48px; }
.strip__mark { height: 56px; margin: -12px 4px -12px -10px; }
.kit__stamp { top: 112px; }
.kit__stamp { top: 64px; }

/* ── P02: P01 sign-off fixes ── */
/* 4: the status pills sit in the truss (y 6–62), above the lamp heads */
.is-studio .topbar { top: 6px; }
.is-studio .topbar .tag { display: flex; align-items: center; height: 56px; padding-top: 0; padding-bottom: 0; }
/* 5: the Hangar (pause) is the lit pub: house lights up, an even wash, no cone */
.studio.is-wash .studio__house { opacity: calc(1.4 - 0.7 * 1.3); }
.studio.is-wash .studio__cone { opacity: 0; }
/* 6: anything standing on the floor band casts one shadow away from the key (upper left) */
.stage-stand,
.is-studio .is-stage .mn-lamp { position: relative; }
.stage-stand::after,
.is-studio .is-stage .mn-lamp::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -22px;
  z-index: -1;
  width: 80%;
  height: 16px;
  border-radius: 50%;
  background: rgba(8, 10, 20, 0.5);
  filter: blur(4px);
  transform: skewX(-6deg) translateX(6px);
  pointer-events: none;
}

/* ── P02 chips ── */
/* the audience-row ribbon (SHOW_BIBLE 1.6): chips stand on the studio audience row, y 940-1068, no panel */
.hud { position: absolute; left: 0; top: 940px; width: 1920px; height: 128px; z-index: 5; pointer-events: none; --kit: #f3e7cf; --signal: #f08a24; --s: 1; }
.hud > * { pointer-events: auto; }
/* night gradient from y 930 lifts the row off the audience heads */
.hud::before { content: ""; position: absolute; left: 0; top: -40px; width: 1920px; height: 180px; background: linear-gradient(rgba(10, 14, 28, 0), rgba(10, 14, 28, 0.55) 40%, rgba(10, 14, 28, 0.35)); pointer-events: none; } /* P15B: the heads stand from y 904 */
.chip { position: absolute; width: var(--w, 92px); height: var(--h, 128px); will-change: transform; }
.chip__in { position: absolute; left: 50%; bottom: 0; width: 92px; height: 128px; margin-left: -46px; transform-origin: 50% 100%; scale: var(--s, 1); transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1); }
.chip__disc { position: absolute; left: 0; top: 0; width: 92px; height: 92px; box-sizing: border-box; border: 6px solid var(--ink); border-radius: 50%; background: var(--team, var(--kit)); background: oklch(from var(--team, #f3e7cf) l calc(c * 1.3) h); box-shadow: 0 0 0 3px var(--kit), 0 5px 0 3px #1d1a17, inset 0 0 0 2px color-mix(in srgb, var(--team, #888) 65%, #fff); }
.chip__visor { position: absolute; inset: 12px; border-radius: 50%; background: color-mix(in srgb, var(--team, #888) 15%, var(--kit)); box-shadow: inset 0 0 0 3px var(--ink); overflow: hidden; display: grid; place-items: center; }
.chip__visor img { width: 52px; height: 52px; object-fit: contain; }
/* two foil split-pin dots on the collar at 10 and 2 o'clock */
.chip__disc::before { content: ""; position: absolute; left: 17px; top: -1px; width: 6px; height: 6px; border-radius: 50%; background: #d9d4c8; box-shadow: 34px 0 0 #d9d4c8; z-index: 1; }
/* number plate: Kit card, ink rim 4 px, dog-ear 10 px bottom-right; the dominant mark */
.chip__no { position: absolute; left: 12px; top: 76px; width: 68px; height: 52px; z-index: 2; display: grid; place-items: center; isolation: isolate; background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); font: 400 48px/1 var(--font-display); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; padding-bottom: 2px; box-sizing: border-box; }
.chip__no::before { content: ""; position: absolute; inset: 4px; z-index: -1; background: var(--kit); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%); }
.chip__no::after { content: ""; position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; z-index: -1; background: linear-gradient(135deg, #cdb98f 50%, transparent 50%); }
/* helmet lamp: crisp 16 px disc on the crown; locked = Signal orange on a flat 12-point Kit-card starburst, no blur */
.chip__lamp { position: absolute; left: 24px; top: -22px; width: 44px; height: 44px; z-index: 3; pointer-events: none; }
.chip__lamp::before { content: ""; position: absolute; inset: 0; background: var(--kit); clip-path: polygon(50.0% 0.0%, 58.5% 18.1%, 75.0% 6.7%, 73.3% 26.7%, 93.3% 25.0%, 81.9% 41.5%, 100.0% 50.0%, 81.9% 58.5%, 93.3% 75.0%, 73.3% 73.3%, 75.0% 93.3%, 58.5% 81.9%, 50.0% 100.0%, 41.5% 81.9%, 25.0% 93.3%, 26.7% 73.3%, 6.7% 75.0%, 18.1% 58.5%, 0.0% 50.0%, 18.1% 41.5%, 6.7% 25.0%, 26.7% 26.7%, 25.0% 6.7%, 41.5% 18.1%); opacity: 0; }
.chip__lamp::after { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--ink); border-radius: 50%; background: #5d5750; }
.chip.is-ready .chip__lamp::before, .chip.is-locked .chip__lamp::before { opacity: 1; }
.chip.is-ready .chip__lamp::after, .chip.is-locked .chip__lamp::after { background: var(--signal); }
.chip.is-ready .chip__in, .chip.is-locked .chip__in { transform: translateY(-10px); }
/* right: the chip stands tall; wrong: dips 6 px with two kraft shards, no red */
.chip.is-wrong .chip__in { transform: translateY(6px); }
.chip.is-wrong .chip__in::before, .chip.is-wrong .chip__in::after { content: ""; position: absolute; top: 6px; width: 14px; height: 10px; background: #c9a56a; clip-path: polygon(0 100%, 55% 0, 100% 80%); z-index: 4; animation: chip-shard 220ms var(--ease-out) both; }
.chip.is-wrong .chip__in::before { left: -8px; rotate: -24deg; }
.chip.is-wrong .chip__in::after { right: -8px; rotate: 30deg; --dx: 8px; }
@keyframes chip-shard { from { opacity: 0; translate: calc(var(--dx, -8px) * -0.5) -8px; } to { opacity: 1; translate: 0 0; } }
/* is-away: dim disc, plate at 70 %, lamp off */
.chip.is-away .chip__disc { filter: grayscale(0.85) brightness(0.55); }
.chip.is-away .chip__no { opacity: 0.7; }
.chip.is-away .chip__lamp::before { opacity: 0; }
.chip.is-away .chip__lamp::after { background: #5d5750; }
/* rank arrow: 26 px triangle at the disc's upper right, 3 px ink outline */
.chip__arrow { position: absolute; right: -20px; top: -16px; width: 40px; height: 40px; z-index: 5; overflow: visible; stroke: var(--ink); stroke-width: 2.6; stroke-linejoin: round; animation: chip-pop 160ms var(--ease-out) both; }
.chip__arrow.is-up { fill: var(--green); }
.chip__arrow.is-down { fill: #8d8a85; }
@keyframes chip-pop { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
/* points flag on a 4 px stick: Kit-card tag (auto width, 60 px tall), ink rim 4 px, +N Lilita 46 px, +-2 degrees, stamp 1.25 -> 1 */
.chip__flag { display: none; position: absolute; left: 50%; bottom: calc(100% + 24px); height: 60px; padding: 0 14px; box-sizing: border-box; border: 4px solid var(--ink); border-radius: 6px; background: var(--kit); color: var(--ink); font: 400 46px/52px var(--font-display); white-space: nowrap; text-align: center; z-index: 6; translate: -50% 0; rotate: -2deg; transform-origin: 50% 100%; }
.chip__flag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 4px; height: 24px; margin-left: -2px; background: var(--ink); }
.chip:nth-child(even) .chip__flag { rotate: 2deg; }
.chip.is-right .chip__flag { display: block; animation: chip-stamp 140ms var(--ease-out) both; }
.chip--s .chip.is-odd .chip__flag, .chip--p .chip.is-odd .chip__flag { bottom: calc(100% + 96px); }
.chip--s .chip.is-odd .chip__flag::after, .chip--p .chip.is-odd .chip__flag::after { height: 96px; }
@keyframes chip-stamp { from { scale: 1.25; opacity: 0; } to { scale: 1; opacity: 1; } }
/* 25-40 teams: number-only plates 56x52 (number 40 px, 8 px hue band on top); featured ones pull up as full chips */
.chip--p .chip__in { width: 56px; height: 52px; margin-left: -28px; scale: 1; }
.chip--p .chip__no { left: 0; top: 0; width: 56px; height: 52px; font-size: 40px; padding-top: 6px; }
.chip--p .chip__no::after { z-index: 1; }
.chip--p .chip__no::before { background: linear-gradient(var(--team) 0 8px, var(--kit) 8px); }
.chip--p .chip__disc, .chip--p .chip__arrow { display: none; }
.chip--p .chip__lamp { left: 6px; top: -22px; }
/* round 2 */
/* lane flags (25-40): only top 3 + mover, in the reveal lane y >= 840, spread so they never cover each other */
.chip__flag--lane { display: block; position: absolute; bottom: auto; margin: 0; z-index: 9; translate: -50% 0; rotate: var(--tilt, -2deg); animation: chip-stamp 140ms var(--ease-out) both; }
.chip__flag--lane::after { height: var(--stick, 0px); }
/* the other right plates: lift 6 px, hue band turns Pennant green for 1.6 s */
.chip--p .chip.is-win .chip__in { transform: translateY(-6px); }
.chip--p .chip.is-win .chip__no::before { background: linear-gradient(#5ba35f 0 8px, var(--kit) 8px); }
/* leader cue: the rank-1 plate inverts (ink face, Kit-card number, Kit-card rim) in every band */
.chip.is-lead .chip__no { background: var(--kit); color: var(--kit); }
.chip.is-lead .chip__no::before { background: #1d1a17; }
.chip--p .chip.is-lead .chip__no::before { background: linear-gradient(var(--team) 0 8px, #1d1a17 8px); }
.chip--p .chip.is-lead.is-win .chip__no::before { background: linear-gradient(#5ba35f 0 8px, #1d1a17 8px); }
.chip.is-lead .chip__no::after { background: linear-gradient(135deg, #8d8a85 50%, transparent 50%); }
/* leader cue: kraft card backing tab behind disc + plate, hard ink drop, a warm floor pool, stands 8 px higher */
.chip__tab { position: absolute; left: -9px; top: -11px; width: 110px; height: 150px; box-sizing: border-box; border: 4px solid var(--ink); border-radius: 16px; background: #c9965a; box-shadow: 0 6px 0 var(--ink); }
.chip.is-lead::before { content: ""; position: absolute; left: 50%; bottom: -16px; width: 170px; height: 34px; margin-left: -85px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 190, 100, 0.6), rgba(255, 190, 100, 0) 70%); pointer-events: none; }
.chip.is-lead .chip__in { transform: translateY(-8px); }
.chip.is-lead.is-ready .chip__in, .chip.is-lead.is-locked .chip__in { transform: translateY(-18px); }
.chip--p .chip.is-lead .chip__tab { left: -7px; top: -7px; width: 70px; height: 66px; border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
/* game-added badges: dropped at >= 13 teams (the piles on stage already say SAMI!), a stamp above the disc at 1-12 */
.hud.chip--s .la-hudsami, .hud.chip--p .la-hudsami { display: none; }
.hud:not(.chip--s):not(.chip--p) .chip .la-hudsami { position: absolute; left: 50%; top: auto; bottom: calc(100% - 31px); translate: -50% 0; rotate: -4deg; margin: 0; max-width: 118px; box-sizing: border-box; padding: 0 6px; text-align: center; z-index: 8; }
.hud:not(.chip--s):not(.chip--p) .chip:has(.la-hudsami) .chip__flag { bottom: calc(100% + 96px); }
.hud:not(.chip--s):not(.chip--p) .chip:has(.la-hudsami) .chip__flag::after { height: 96px; }
@media (prefers-reduced-motion: reduce) {
  .chip__in, .chip__lamp::after { transition: none; }
  .chip.is-wrong .chip__in::before, .chip.is-wrong .chip__in::after, .chip__arrow, .chip.is-right .chip__flag { animation: none; }
}
/* round 3: 13-24 chips take the featured-five lane flags too; the other right chips lift with a green plate */
.chip--s .chip.is-win .chip__in { transform: translateY(-6px); }
.chip--s .chip.is-win .chip__no::before { background: #cdeccf; }
.chip__arrow { width: 48px; height: 48px; right: -24px; top: -22px; }
.chip--p .chip__lamp { scale: 0.7; transform-origin: 50% 70%; }
/* CD sign-off: plates 46 px with a 12 px row gap and a 50 px row-2 offset; lamp tucked on the plate's crown */
.chip--p .chip__in { height: 46px; }
.chip--p .chip__no { height: 46px; padding-top: 7px; }
.chip--p .chip__lamp { left: 6px; top: -16px; scale: 0.55; }
.chip--p .chip.is-lead .chip__tab { left: -5px; top: -5px; width: 66px; height: 56px; }
.chip--p .chip.is-lead .chip__in { transform: translateY(-4px); }
/* 1-12: neighbours' flags stagger 48 px so wide totals never touch */
.hud:not(.chip--s):not(.chip--p) .chip.is-odd .chip__flag { bottom: calc(100% + 72px); }
.hud:not(.chip--s):not(.chip--p) .chip.is-odd .chip__flag::after { height: 72px; }
/* 13-40 lane flags: 40 px tall, 28 px numerals, from y 880 down */
.chip__flag--lane { height: 40px; padding: 0 10px; border-width: 3px; font-size: 32px; line-height: 34px; } /* D-SYS3: TV floor 32 px */
/* the leader's flag: gold card, ink crown, 1.25x, 14 px higher */
.chip__flag--lead { background: #f4c430; scale: 1.25; translate: -50% -14px; z-index: 10; }
.chip.is-right .chip__flag--lead { animation: none; }
.chip__flag--lead::after { height: 38px; }
.chip__flag--lane.chip__flag--lead::after { height: calc(var(--stick, 0px) + 14px); }
.chip__crown { display: inline-block; width: 24px; height: 18px; margin-right: 6px; vertical-align: 3px; background: var(--ink); clip-path: polygon(0 100%, 0 15%, 25% 55%, 50% 0, 75% 55%, 100% 15%, 100% 100%); }
.chip__flag--lane .chip__crown { width: 16px; height: 12px; margin-right: 4px; vertical-align: 2px; }
.hud:not(.chip--s):not(.chip--p) .chip.is-odd .chip__flag { bottom: calc(100% + 90px); }
.hud:not(.chip--s):not(.chip--p) .chip.is-odd .chip__flag::after { height: 90px; }
.chip__flag--lead:not(.chip__flag--lane) { scale: 1.1; translate: -50% 0; }
.chip__flag--lead:not(.chip__flag--lane)::after { height: 24px; }
.hud:not(.chip--s):not(.chip--p) .chip.is-odd .chip__flag--lead::after { height: 90px; }
.chip__flag--lane.chip__flag--lead { scale: 1; translate: -50% 0; }
.chip__flag--lane.chip__flag--lead::after { display: none; }

/* ── P04 frame diet (D-SPEC5, ops rule 1): truss 0–56 with the strip in it, drape hint 0–28 + bulb column 28–76 each
   side, apron lip y 916–940, audience heads from y 940 under the ribbon. Live opening x 76–1844, y 56–916 (1768 × 860). ── */
.studio__flat { inset: 56px 76px 140px; width: 1768px; height: 884px; }
.is-studio .topbar { top: 2px; }
.is-studio .topbar .tag { height: 50px; }

/* P11: the leader's tag on the ribbon (bible §1.11 amended) — kit card, 38 px, above the crowned chip; it steps aside while the reveal lane carries flags */
.chip__vodi { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 3; padding: 2px 14px 4px; white-space: nowrap; font: 400 var(--t-caption)/1.1 var(--font-display); color: var(--ink); background: #f3e7cf; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); pointer-events: none; transition: opacity .2s; }
#hud:has(.chip__flag--lane) .chip__vodi, #hud:has(.chip__flag--lane) .chip__x2, #stage.is-launching .chip__vodi { opacity: 0; } /* P15B: the flags take lane 1 */

/* ── P13 chrome ruling (cd-kickoff §A1) ── */
/* strip: rocket mark · STANICA n / 13 · RAKETA m / 12 left, the venue right; the game name never rides the strip */
#top-title { display: none; }
#top-code { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#top-code[hidden] { display: none; }
#top-code.is-note { font-size: 32px; letter-spacing: .02em; } /* P15B: an MC clock note in the venue slot (CD P15A #9: 26 px, never a banner) */ /* D-SYS3: TV floor 32 px */
/* ribbon QUIET: the audience row is dark while a question is open — chips at 0.7, the lock lamp the only live thing */
.chip__disc, .chip__no { transition: filter 300ms var(--ease-out); }
.hud--quiet .chip__disc, .hud--quiet .chip__no { filter: brightness(0.7); }
.hud--quiet .chip__flag, .hud--quiet .chip__arrow, .hud--quiet .chip__vodi:not(.chip__vodi--word), .hud--quiet .chip__tab, .hud--quiet .chip__crown,
.hud--quiet .la-hudsami, .hud--quiet .chip.is-lead::before { display: none; }
.hud--quiet .chip.is-lead .chip__in { transform: none; }
.hud--quiet .chip.is-lead.is-ready .chip__in, .hud--quiet .chip.is-lead.is-locked .chip__in { transform: translateY(-10px); }
.hud--quiet .chip.is-lead .chip__no { background: var(--ink); color: var(--ink); }
.hud--quiet .chip.is-lead .chip__no::before { background: var(--kit); }
.hud--quiet.chip--p .chip.is-lead .chip__no::before { background: linear-gradient(var(--team) 0 8px, var(--kit) 8px); }
.hud--quiet .chip.is-lead .chip__no::after { background: linear-gradient(135deg, #cdb98f 50%, transparent 50%); }
@media (prefers-reduced-motion: reduce) { .chip__disc, .chip__no { transition: none; } }

/* ── P13 lit paper (tokens.css .paper-lit): the shared panels on the studio wear the same material ── */
/* every studio .card takes the lift only (its face, edge and art stay the game's); panels this file owns take all of it */
.is-studio .card { box-shadow: var(--paper-lift); }
.mach--kit .kit, .rc-card, .tele__line {
  border: 3px solid var(--ink);
  background-image: var(--paper-grain);
  background-color: var(--kit-card);
  color: var(--ink);
  box-shadow: var(--paper-lift);
}


/* P13 (CD #2): every printed game panel stands on the stage as the same lit card — kraft thickness lower-right,
   ink rim, the key's cast shadow (tokens.css --paper-lift); the id lifts it over each game's injected style */
#stage :is(.bf-kit, .du-kit, .la-kit, .tt-kit, .pp-kit, .pj-card, .dk-plate > b, .fm-card, .mn-plate, .rz-line, .pl-rule, .pl-clue, .hg-board, .hg-clock, .pd-plate, .pd-tag, .dz-kit, .dz-card) {
  box-shadow: var(--paper-lift);
}

/* ── P13 PF-O1 night joker "Pojačanje +25 %" (D-JOKER25): the brass "+25 %" tab on the chip for its station, and the one kraft
   line over the chip when it is played (ui.js jokerPlayed); P15A t5 (cd-kickoff F8): a word at 34 px, flat brass ── */
.chip__x2 { position: absolute; left: calc(50% - 58px); top: -30px; z-index: 4; min-width: 116px; height: 44px; box-sizing: border-box; padding: 2px 10px 0; display: grid; place-items: center; font: 400 var(--t-min)/1 var(--font-display); color: var(--ink); background: var(--paper-grain), #e2b33f; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 0 4px 0 var(--ink); rotate: 4deg; pointer-events: none; transition: filter 300ms var(--ease-out); }
.chip--s .chip__x2, .chip--p .chip__x2 { top: -48px; } /* 13–40: above the plate, never over its number */
.hud--quiet .chip__x2 { filter: brightness(0.7); }
.jk-line { position: absolute; top: 790px; left: 0; z-index: 6; display: flex; align-items: center; gap: 14px; padding: 4px 22px 8px 10px; font: 400 var(--t-caption)/1.2 var(--font-display); color: var(--ink); white-space: nowrap; background: var(--paper-grain), linear-gradient(#e6c792, #c99d62); border: 3px solid var(--ink); border-radius: 6px; box-shadow: var(--paper-lift); opacity: 0; pointer-events: none; }
.jk-line::after { content: ""; position: absolute; left: var(--nib, 50%); bottom: -16px; width: 26px; height: 16px; margin-left: -13px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.jk-line.is-free::after { display: none; }
/* D-FT1E8 (F13): the joker's rule on a second line; the taller sticker stands higher, clear of the table row (y >= 880) */
.jk-line:has(small) { display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 14px; row-gap: 2px; top: 754px; }
.jk-line small { grid-column: 1 / -1; font: 800 32px/1.1 var(--font-body); }
.jk-line i { font-style: normal; padding: 0 8px 2px; background: linear-gradient(#fff0b0, #f2c440 45%, #c8901c); border: 3px solid var(--ink); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .chip__x2 { transition: none; } }

/* ── P15A audience row: table plates on a kraft rail (cd-kickoff §2, Fable 5.1). One override block; ui.js keeps the
   .chip contract. 1–12: a 112 × 60 Kit-card table plate (Lilita 52) with the paper head peeking over it from behind in
   an 88 px team-hue disc (6 px ink ring), a 16 px lamp on the disc crown; 13–24: 64 × 56 number plates with a 10 px hue
   band; 25–40: 56 × 44 with a 6 px band, two rows. The leader = a Rocket-red plate + its VODI tag (one object). ── */
#hud { height: 140px; }
/* P15B (CD kickoff §4): the rail y 1026–1080 (the set's floor; it may touch the edge), plates end at y 1044 */
#hud::after { content: ""; position: absolute; left: 0; top: 86px; width: 1920px; height: 54px; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, #b88b58 0 9px, #a97d4c 9px 12px, #c99c69 12px 21px);
  border-top: 1px solid #f3e7cf; box-shadow: 0 10px 10px rgba(10, 6, 2, 0.45); }
#hud .chip { z-index: 1; }
#hud .chip__in { left: 0; top: 0; width: var(--w, 112px); height: var(--h, 128px); margin: 0; scale: none; transform-origin: 50% 100%; }
/* D-LAYOUT1: ≤ 12 tables the figure stands at 0.85 on its plate's foot (y 1050): head y 931, lamp 924, so lane 1 (y 884–936)
   reads above it and nothing of the row rises over y 880 */
#hud:not(.chip--s):not(.chip--p) .chip__in { scale: 0.85; }
#hud .chip__disc { left: 12px; top: 0; width: 88px; height: 88px; z-index: 1; border: 6px solid var(--ink); background: var(--team, var(--kit-card)); box-shadow: 3px 4px 0 rgba(43, 33, 24, 0.35); }
#hud .chip__disc::before { display: none; }
#hud .chip__visor { inset: 0; background: none; box-shadow: none; }
#hud .chip__visor img { width: 100%; height: 100%; object-fit: cover; }
#hud .chip__lamp { left: 46px; top: -8px; width: 20px; height: 20px; box-sizing: border-box; z-index: 3; border: 2px solid var(--ink); border-radius: 50%; background: #5d5750; scale: none; }
#hud .chip__lamp::before, #hud .chip__lamp::after { content: none; }
#hud .chip.is-ready .chip__lamp, #hud .chip.is-locked .chip__lamp { background: var(--signal); }
#hud .chip__no { left: 0; top: 80px; width: 112px; height: 60px; z-index: 2; padding: 0; box-sizing: border-box; display: grid; place-items: center;
  clip-path: none; background: var(--kit-card); color: var(--ink); border: 4px solid var(--ink); border-radius: 6px;
  box-shadow: 4px 6px 0 rgba(43, 33, 24, 0.35); font: 400 52px/1 var(--font-display); font-variant-numeric: tabular-nums; }
#hud .chip__no::before, #hud .chip__no::after { content: none; }
/* states (P15B CD §4): locked = the lamp lit and the plate + head rise 10 px; wrong dips 6 px */
#hud .chip.is-lead .chip__in { transform: none; }
#hud .chip.is-ready .chip__in, #hud .chip.is-locked .chip__in, #hud .chip.is-lead.is-ready .chip__in, #hud .chip.is-lead.is-locked .chip__in { transform: translateY(-10px); }
#hud .chip.is-wrong .chip__in { transform: translateY(6px); }
#hud .chip.is-lead::before { content: none; }
#hud .chip.is-lead .chip__no, #hud.hud--quiet .chip.is-lead .chip__no { background: var(--red); color: var(--kit-card); }
#hud .chip.is-away .chip__no { opacity: 1; filter: grayscale(0.6) brightness(0.7); }
/* lane 1 (P15B CD §4): ONE clipped tag per plate, y 884–936 (D-LAYOUT1: inside the row's band, never over a game; its number clears a locked head), centred on
   the plate, its foot tucked behind the head disc: the leader's VODI · n (38 px Kit card), else the joker's "+25 %" tab (34 px Signal orange, D-JOKER25) */
#hud .chip__vodi { left: 50%; top: -26px; bottom: auto; transform: none; translate: -50% 0; z-index: -1; height: 52px; box-sizing: border-box; padding: 0 14px 10px;
  font: 400 36px/40px var(--font-display); color: var(--ink); background: var(--kit-card); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 3px 4px 0 rgba(43, 33, 24, 0.35); white-space: nowrap; }
#hud .chip__vodi::after { content: none; }
/* ARG1: every other plate's night total in the same lane-1 slot (≤ 12 tables, ui.js totals) */
#hud .chip__tot { position: absolute; left: 50%; top: -26px; translate: -50% 0; z-index: -1; height: 52px; box-sizing: border-box; padding: 0 10px 10px;
  font: 400 38px/40px var(--font-display); color: var(--ink); background: var(--paper-grain), var(--kit); border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 3px 4px 0 rgba(43, 33, 24, 0.35); white-space: nowrap; pointer-events: none; transition: opacity .2s; }
#hud:has(.chip__flag--lane) .chip__tot, #hud.hud--quiet .chip__tot, #stage.gp-on .chip__tot, #stage.is-launching .chip__tot { opacity: 0; } /* CD: results and between questions only */
/* D-FT1NB10-2 (P-N9-plate, PC): the leader keeps its own night / game box like every plate; its word VODI is a red sticker on the red plate's
   top edge (bottom y 83 = the plate's border, clear of its name (gate eb62cf0a); over the disc's rim, inside .chip__in: it rises with a locked plate), 32 px; never in lane 1 with the box, never under the plate
   (a game's progress bar runs there: the first try, a tab hanging under the plate, met it in Gdje je to?) */
#stage #hud .chip .chip__in > .chip__vodi--plate { position: absolute; left: 50%; top: 52px; bottom: auto; transform: none; translate: -50% 0; rotate: -3deg; z-index: 3;
  display: block; height: 31px; box-sizing: border-box; padding: 0 12px; font: 400 32px/25px var(--font-display); letter-spacing: .06em; color: var(--kit-card);
  background: var(--red); border: 3px solid var(--ink); border-radius: 6px; box-shadow: 2px 3px 0 rgba(43, 33, 24, 0.35); white-space: nowrap; }
#stage:not(.is-launching) #hud:has(.chip__flag--lane) .chip__vodi--plate { opacity: 1; } /* not lane 1: the flags leave it alone */
#hud.hud--quiet .chip__vodi--plate { filter: brightness(0.7); }
/* D-FT1NB10-1 (PC D7-seat-colour-ok): a Doma row past 8 seats repeats a seat colour; the repeat's number on its disc tells them apart */
#hud .chip__seatno { position: absolute; right: -6px; top: 40px; z-index: 3; min-width: 40px; height: 40px; box-sizing: border-box; padding: 0 6px; border: 3px solid var(--team);
  border-radius: 20px; background: var(--ink); color: var(--kit-card); font: 400 32px/34px var(--font-display); text-align: center; box-shadow: 0 0 0 2px var(--kit-card); }
/* ≤ 24 tables: "VODI · 1.122" (≈ 200 px) is wider than the 150 px pitch, and the leader is not always the row's first plate
   (a game seats its own order: the finale's VODI covered the next plate's total, Argon GAMEPOLISH4): D-GP4HUD1 stacks it,
   VODI small over the number, centred on its own plate */
#hud .chip__vodi:not(.chip__vodi--free) { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 12px 9px; font: 400 36px/1 var(--font-display); }
#hud .chip__vodi:not(.chip__vodi--free) small { font: 400 32px/1 var(--font-display); letter-spacing: .06em; } /* K2-X-2: the leader tag reads at 6 m: VODI 28 px, score 36 px */ /* D-SYS3: TV floor 32 px */
#hud.chip--s .chip__vodi:not(.chip__vodi--free) { font-size: 32px; } #hud.chip--s .chip__vodi:not(.chip__vodi--free) small { font-size: 24px; }
/* D-NQA48: the stacked VODI tag (VODI over the number) is as tall as its two lines + padding + border, so the word is never clipped by the top edge */
#hud .chip__vodi:not(.chip__vodi--free) { height: 82px; top: -56px; }
#hud.chip--s .chip__vodi:not(.chip__vodi--free) { height: 68px; top: -76px; }
#hud .chip__x2 { left: 50%; top: -24px; translate: -50% 0; z-index: -1; min-width: 0; height: 52px; padding: 0 8px 10px; rotate: 0deg; background: var(--paper-grain), var(--signal); box-shadow: 3px 4px 0 rgba(43, 33, 24, 0.35); }
#hud:not(.hud--quiet) .chip.is-lead .chip__x2 { display: none; } /* the leader's VODI holds the slot; its "+25 %" rides its flag (D-JOKER25) */
#hud.chip--s .chip__x2, #hud.chip--p .chip__x2 { display: none; } /* 13–40: lane 1 is VODI only; the joker shows on the flag */
/* D-NQA71: a joker's tag never takes its table's number ("VODI 890 · ×2 · ×2 · 0 · 0" at the machine beat): while the total shows,
   it stacks "+25 %" (D-JOKER25) over the number like the VODI tag and the bare tab steps back; where the total is hidden the tab shows as before */
#hud .chip:has(.chip__x2) .chip__tot { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 82px; top: -56px; } /* D-JOKER25: two lines ("+25 %" over the number) need the VODI tag's height (D-NQA48), 68 px clipped the top line */
#hud .chip:has(.chip__x2) .chip__tot::before { content: "+25 %"; font: 400 32px/1 var(--font-display); letter-spacing: .06em; } /* D-SYS3: TV floor 32 px; D-JOKER25 */
#stage:not(.is-launching):not(.gp-on) #hud:not(.hud--quiet):not(:has(.chip__flag--lane)) .chip:not(.is-lead):has(.chip__tot) .chip__x2 { opacity: 0; }
#stage.gp-on #hud .chip__x2 { display: none; } /* a Navigacija leg carries no joker (WB-O4): the tab would be a lie (and it met the strap) */
/* the STOL tab: the numbers' label, once per frame, left of the first plate (ui.js stolTab) */
#hud .hud__stol { position: absolute; z-index: 2; height: 44px; box-sizing: border-box; padding: 0 14px 0 26px; display: grid; place-items: center;
  font: 400 var(--t-min)/1 var(--font-display); color: var(--ink); background: var(--paper-grain), var(--kit-card); border: 3px solid var(--ink); border-radius: 4px;
  box-shadow: 3px 4px 0 rgba(43, 33, 24, 0.35); rotate: -2deg; pointer-events: none; }
#hud .hud__stol::before { content: ""; position: absolute; left: 8px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #f8f2d8, #d9cfa8 45%, #8f7e48); border: 2px solid var(--ink); box-sizing: border-box; }
#hud.hud--quiet .hud__stol { filter: brightness(0.7); }
/* D-SYS4 (K2, owner §38 / Carbon v2 99 "Zamrznuti bodovi"): while a station runs (#hud.is-live, serializeTeams `station`) the lane-1 box is
   THIS game's points, signed and in the pay green; the night leader keeps the red plate but its VODI · night figure waits for the podium
   (one kind of number per row); the OVA IGRA tab names the lane and hides with the boxes (answer window, flags up, launch) */
#hud .chip__tot.is-game { color: #2f7d3a; }
#hud .chip__tot.is-game.is-loss { color: var(--red-dark); } /* D-FT1NB9 (PC-L5): a negative game sum in the loss red (#9e2c1d on the kit card 6.6:1), the podium's is-neg colour */
#hud.is-live .chip.is-lead .chip__tot { display: block; }
#hud.is-live .chip__vodi:not(.chip__vodi--word) { display: none; } /* D-FT1NA12-4 (P-N9): the red plate keeps its word VODI, without the night figure */
#hud.is-live .chip.is-lead:has(.chip__tot) .chip__x2 { opacity: 0; }
#hud .hud__igra { color: #2f7d3a; letter-spacing: 0.04em; transition: opacity .2s; }
#hud:has(.chip__flag--lane) .hud__igra, #hud.hud--quiet .hud__igra, #stage.gp-on .hud__igra, #stage.is-launching .hud__igra, #stage:has(#tt-pcs) .hud__igra { opacity: 0; }
/* D-FIX1 (verifier S13): the pay's reason, once, left of the row while the +N flags stand (ui.js whyTab); it leaves with them */
#hud .hud__why { color: #2f7d3a; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
#hud:not(:has(.chip__flag--lane)) .hud__why, #hud.hud--quiet .hud__why, #stage.gp-on .hud__why, #stage.is-launching .hud__why, body:has(#podium) #hud .hud__why { display: none; }
#hud.chip--s .hud__stol, #hud.chip--p .hud__stol { padding: 0 10px 0 24px; font-size: 32px; } /* 13–24: x 20–116, the first plate at x ≥ 140 (CD mid §3.5) */ /* D-SYS3: TV floor 32 px */
/* lane 2 flags (P15B CD §4): 38 px Kit cards in their plate's column, y 806–850 at ≤ 12 tables, number only; a loss is Ink */
#hud .chip__flag--lane { height: 44px; padding: 0 12px; box-sizing: border-box; border: 3px solid var(--ink); border-radius: 6px; background: var(--kit-card); color: var(--ink);
  font: 400 var(--t-caption)/38px var(--font-display); box-shadow: 3px 4px 0 rgba(43, 33, 24, 0.35); scale: none; }
#hud .chip__flag--lane::after { width: 4px; margin-left: -2px; height: var(--stick, 0px); }
#hud .chip__flag--down { background: var(--ink); color: var(--kit-card); }
#hud .chip__flag-head { width: 56px; height: 56px; margin: -8px 6px 0 -14px; vertical-align: middle; object-fit: cover; }
/* 13–24: number plates 64 × 56 with a 10 px hue band (no head), lamp 14 px on the band */
#hud.chip--s .chip__disc, #hud.chip--p .chip__disc { display: none; }
#hud.chip--s .chip__no { top: 0; width: 64px; height: 56px; padding-top: 10px; font-size: 44px; background: linear-gradient(var(--team) 0 10px, var(--kit-card) 10px); }
#hud.chip--s .chip__lamp { left: 25px; top: -6px; width: 14px; height: 14px; }
#hud.chip--s .chip.is-lead .chip__no { background: linear-gradient(var(--team) 0 10px, var(--red) 10px); }
#hud.chip--s .chip.is-win .chip__no { background: linear-gradient(var(--green) 0 10px, var(--kit-card) 10px); }
#hud.chip--s .chip.is-win .chip__in, #hud.chip--p .chip.is-win .chip__in { transform: translateY(-6px); }
/* 25–40: 56 × 44 plates, 6 px band, two rows; the leader's tag stands at the lane's left end (it would cover neighbours) */
#hud.chip--p .chip__no { top: 0; width: 56px; height: 44px; padding-top: 6px; font-size: var(--t-min); border-width: 3px; background: linear-gradient(var(--team) 0 6px, var(--kit-card) 6px); }
#hud.chip--p .chip__lamp { left: 22px; top: -4px; width: 12px; height: 12px; }
#hud.chip--p .chip.is-lead .chip__no { background: linear-gradient(var(--team) 0 6px, var(--red) 6px); }
#hud.chip--p .chip.is-win .chip__no { background: linear-gradient(var(--green) 0 6px, var(--kit-card) 6px); }
#hud.chip--s .chip__vodi { top: -50px; height: 42px; padding-bottom: 0; z-index: 3; } /* 13–24: no head to tuck behind */
#hud .chip__vodi--free { position: absolute; left: 80px; top: -44px; translate: none; height: 42px; padding-bottom: 0; z-index: 3; } /* 25–40: lane 1 y 896–938 at the lane's left end, a hud child */
#hud .chip__vodi--free::after { content: none; }
#hud.hud--quiet .chip__vodi:not(.chip__vodi--word) { display: none; } /* D-FT1NA12-4 (P-N9): the red plate keeps its word VODI during a question too */
/* D-FT1NA12-4: the word tag (a station running) puts VODI at its top, over the leader's game box (lane 1); on the quiet ribbon (no boxes) it drops into
   the box's own slot (y 884-936), clear of a game's caption card above the row (rig a12-06: the stacked tag covered "bliže i brže") */
#hud .chip__vodi--word:not(.chip__vodi--free) { justify-content: flex-start; padding-top: 4px; }
/* D-FT1NA13 (NV-VODI-0): with the game box up (not quiet) the tag stacks ABOVE the box (word y 841-873, box from 884), so the word never hides behind the leader's number (0 .. 4 digits) */
#hud.hud--big:not(.hud--quiet) .chip__vodi--word:not(.chip__vodi--free) { top: -76px; height: 62px; }
#hud.hud--big.hud--quiet .chip__vodi--word:not(.chip__vodi--free) { top: -26px; height: 52px; padding-top: 0; justify-content: center; }
/* the act curtain (z 50, clipped above y 940) would leave the VODI tag's stick poking out under it: hide the tag meanwhile */
#stage:has(.curtain:not([hidden]):not(.is-rm)) #hud .chip__vodi { visibility: hidden; }

/* MAPFINISH1 (D-MAPFIN1): the illustrated atlas frame (js/host/atlas-live.js) — above the studio canvas, under the
   cards, the curtain and the pause; the map acts show it. Teams live in its clipping (owner Q22), so the ribbon and
   the strip step aside while it shows. */
.atlas-frame { position: absolute; inset: 0; width: 1920px; height: 1080px; border: 0; visibility: hidden; pointer-events: none; background: transparent; }
.atlas-act #hud, .atlas-act #topbar { display: none !important; }
/* MAPFINISH4 (Kimi c-before 00:03.52: the status pills and the table strip popped in over the curtain's title card):
   leaving the atlas act they slide in (an animation restarts whenever display comes back) */
body:not(.atlas-act) #hud:not([hidden]) { animation: hud-in 0.4s ease-out both; }
body:not(.atlas-act) #topbar:not([hidden]) { animation: top-in 0.4s ease-out both; }
@keyframes hud-in { from { opacity: 0; translate: 0 40px; } }
@keyframes top-in { from { opacity: 0; translate: 0 -30px; } }

/* MAPFINISH3 (owner: no progressive loading): the TV's first lobby waits behind one card until the world is whole (lobby.js) */
/* MAPFINISH4 (Kimi: "a navy block appears only in the lower-right before the full background fills"): the stage stays
   hidden until stage.js has centred and scaled it; the cover is the page's own dark, so load → cover → lobby never flashes */
.stage:not([style*="transform"]) { visibility: hidden; }
/* D-BOOT1 (owner 2026-11-06): the boot is a little show, not a still card: the lockup bobs like a toy on a string, the
   rocket rides a kraft strip as the files arrive (--p, host.html), the line under it changes every 2.4 s */
.boot-cover { position: absolute; inset: 0; z-index: 2147483000; display: grid; place-content: center; justify-items: center; gap: 56px;
  background: #120d08; --p: 0.02; isolation: isolate; }
/* D-BOOT1 (owner: "ona karta je bolja od crne pozadine"): a still of the lobby world (art/boot/world.webp, captured from the
   live atlas) settles in behind a dim veil, so when the cover fades the living map takes over in the same place */
.boot-cover::before, .boot-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.boot-cover::before { background: url("../art/boot/world.webp") center / cover no-repeat; animation: boot-settle 0.6s ease-out both; } /* (fade only: a slow zoom made the wooden frame edge shimmer, owner 2026-11-06) */
.boot-cover::after { background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(18, 13, 8, 0.5) 0%, rgba(18, 13, 8, 0.78) 100%);
  transition: opacity 0.5s ease-out; }
.boot-cover[data-done]::after { opacity: 0; }
@keyframes boot-settle { from { opacity: 0; } }
.boot-logo { width: 760px; height: auto; transform-origin: 50% 0; animation: boot-in 0.5s cubic-bezier(.2,1.4,.4,1) both, boot-bob 3.2s ease-in-out 0.5s infinite;
  filter: drop-shadow(0 18px 0 rgba(0, 0, 0, 0.35)); }
@keyframes boot-in { from { opacity: 0; transform: translateY(-40px) rotate(-3deg) scale(0.92); } }
@keyframes boot-bob { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.boot-track { position: relative; width: 900px; height: 34px; border: 4px solid #2b1d12; border-radius: 18px; background: #c9a77a;
  box-shadow: 0 7px 0 #2b1d12, inset 0 3px 0 rgba(255, 255, 255, 0.25); animation: boot-fade 0.4s 0.25s ease-out both; }
.boot-fill { position: absolute; left: 6px; top: 50%; width: calc((100% - 12px) * var(--p)); height: 0; border-top: 6px dashed #f6ebd2;
  transform: translateY(-50%); transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.boot-rocket { position: absolute; top: 50%; left: calc(6px + (100% - 12px) * var(--p)); width: 84px; height: auto;
  transform: translate(-30%, -58%) rotate(90deg); transition: left 0.6s cubic-bezier(.2,.8,.2,1);
  animation: boot-shake 0.18s steps(2) infinite; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.35)); }
@keyframes boot-shake { 50% { margin-top: -2px; } }
@keyframes boot-fade { from { opacity: 0; transform: translateY(12px); } }
.boot-line { padding: 18px 30px; font: 44px/1 var(--font-display); color: var(--ink, #2b2118); background: #f3e7cf; border-radius: 6px;
  box-shadow: 6px 8px 0 rgba(8, 8, 18, 0.5); rotate: -1deg; }
/* (transform only: a busy main thread may freeze it mid-way, and the line must still read) */
.boot-line.is-new { animation: boot-flip 0.38s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes boot-flip { from { transform: translateY(10px) scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .boot-logo, .boot-rocket, .boot-line.is-new, .boot-cover::before { animation: none; } }
/* D-GP2READ1: while Gabrijela reads, a held clock shows her speaker instead of a still full number (critics read the
   still number as a frozen clock); the number fades back as the seconds start (host-voice.js sets html[data-reading]) */
/* D-NQA7: the fade runs only into the read; out of it the number is back in the same frame the speaker leaves (an empty disc showed for a frame) */
html[data-reading] :is(#bf-dial, #du-dial, #fin-clock, .rz-dial, #la-lamp, #mn-ring, .pj-timer, #pc-dial) > :is(b, small) { transition: opacity 0.2s ease-out; }
html[data-reading] :is(#bf-dial, #du-dial, .rz-dial, #la-lamp, #mn-ring, .pj-timer, #pc-dial) > b,
html[data-reading] #fin-clock > :is(b, small) { opacity: 0; }
html[data-reading] :is(#bf-dial, #du-dial, #fin-clock, .rz-dial, #la-lamp, #mn-ring, .pj-timer, #pc-dial)::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 46%; height: 46%; pointer-events: none;
  background: var(--ink, #2b2118);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 24h10l14-12v40L18 40H8z'/%3E%3Cpath d='M40 22a14 14 0 0 1 0 20M46 15a24 24 0 0 1 0 34' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M8 24h10l14-12v40L18 40H8z'/%3E%3Cpath d='M40 22a14 14 0 0 1 0 20M46 15a24 24 0 0 1 0 34' fill='none' stroke='%23000' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: kz-read-in 0.24s ease-out both, kz-read 1.3s 0.24s ease-in-out infinite alternate;
}
@keyframes kz-read-in { from { opacity: 0; transform: scale(0.8); } }
@keyframes kz-read { to { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { html[data-reading] :is(#bf-dial, #du-dial, #fin-clock, .rz-dial, #la-lamp, #mn-ring, .pj-timer, #pc-dial)::after { animation: kz-read-in 0.24s ease-out both; } }

/* D-REJOIN1 add-on: a table with a dropped phone wears "↺ CODE" across its disc until the seat is back (its way in: the code) */
.chip__back { position: absolute; left: 50%; top: 34px; z-index: 4; transform: translateX(-50%) rotate(-4deg); padding: 3px 10px 1px; white-space: nowrap; font: 400 32px/1 var(--font-display); letter-spacing: .04em; color: #f3e7cf; background: var(--ink); border: 3px solid #f3e7cf; border-radius: 6px; box-shadow: 0 3px 0 rgba(0, 0, 0, .45); pointer-events: none; } /* D-SYS3: TV floor 32 px */

/* D-FT1F2 IGRAJ PONOVNO / KRAJ (again.js): the night's last frame, in the band under the opening (y 956-1056, the audience row
   steps aside on the held launch), centred; amber primary (ink on #FFB703 9.3:1), plain paper KRAJ (ink on #FBF8F1 14:1).
   Paper keys of the Izbornik card: 3 px ink, a 6 px ink step that the press takes back. */
.ag { position: absolute; left: 0; right: 0; top: 956px; z-index: 9; display: flex; justify-content: center; align-items: center; gap: 28px; pointer-events: none; }
.ag button { pointer-events: auto; height: 92px; padding: 0 44px; border: 3px solid #2B1D12; border-radius: 14px; color: #2B1D12; font: 400 56px/1 var(--font-display); letter-spacing: 0.03em; cursor: pointer; box-shadow: 0 6px 0 #2B1D12, 0 16px 22px rgba(0, 0, 0, 0.4); transition: transform 140ms var(--ease-out, ease-out), box-shadow 140ms var(--ease-out, ease-out); }
.ag .ag-go { min-width: 520px; background: #FFB703; }
.ag .ag-end { height: 76px; padding: 0 34px; background: #FBF8F1; font-size: 40px; }
.ag button:active { transform: translateY(6px); box-shadow: 0 0 0 #2B1D12, 0 8px 12px rgba(0, 0, 0, 0.3); }
.ag button:focus-visible { outline: 6px solid #F7F3E8; outline-offset: 4px; }
.ag.is-sent .ag-go { background: #E8C46A; cursor: progress; }

/* ── D-SYS5 (owner §40): "lagani prikaz" on the game stages. shared/light.js applyLight() mirrors the kviz-light switch onto
   <html class="kviz-light"> (the stored Postavke choice or the atlas frame's own frame-time probe, D-FL00). Light = the paper keeps
   its hard kraft edge and ink thickness, loses every blurred cast shadow and drop-shadow filter on things that move (the reveal
   strip, flying cards, puppets, podium plates, the machine's parts), and the lamps stop breathing. Nothing else changes. ── */
html.kviz-light { --paper-lift: 5px 5px 0 var(--kraft-edge), 5px 5px 0 3px var(--ink); }
html.kviz-light .card, html.kviz-light .is-studio .card { box-shadow: 0 10px 0 var(--kraft-dark), 0 10px 0 5px var(--ink); }
html.kviz-light .fx-fly, html.kviz-light .pd-body, html.kviz-light .pd-flash__body, html.kviz-light .dio__rocket, html.kviz-light .dio__fit,
html.kviz-light .mach__part.is-fresh, html.kviz-light .mach--kit .kit__rocket, html.kviz-light .kit__cell.is-fresh img, html.kviz-light .arena__seat img,
html.kviz-light .launch__rocket-img, html.kviz-light .launch__fig, html.kviz-light .pt__card, html.kviz-light .pt__mascot > img,
html.kviz-light #hud .chip.is-radar .chip__in, html.kviz-light .has-art .launch__plate--now { filter: none; }
html.kviz-light .pd-rocket { filter: brightness(0.72); }
html.kviz-light .dio__gantry { filter: brightness(0.62); }
html.kviz-light .pd-step, html.kviz-light .pd-plate, html.kviz-light .pd-top5 li, html.kviz-light .dio__kit { box-shadow: 0 10px 0 var(--ink); }
html.kviz-light .pd-tag { box-shadow: 0 8px 0 rgba(29, 26, 23, 0.85); }
html.kviz-light .pd-total { box-shadow: 0 10px 0 var(--ink); }
html.kviz-light .pd-prize__cup { filter: none; }
html.kviz-light .curtain__card { box-shadow: 0 10px 0 #8a6238, 0 10px 0 4px #2b2118; }
html.kviz-light .curtain__seam { box-shadow: none; }
html.kviz-light .arena__banner { box-shadow: 0 9px 0 #8f1d28, 0 9px 0 4px var(--ink); }
html.kviz-light #hud::after { box-shadow: none; }
html.kviz-light .studio:not(.is-wash) .studio__cone.is-lit { animation: none; }
html.kviz-light .launch__pl, html.kviz-light .launch__p1, html.kviz-light .launch__name { box-shadow: 0 12px 0 #2b2118; }
html.kviz-light .launch__stamp, html.kviz-light .launch__score, html.kviz-light .launch__runner, html.kviz-light .launch__prize > span { box-shadow: 0 8px 0 #2b2118; }
html.kviz-light .launch__pad { box-shadow: 0 10px 0 #8a5a2b; }
html.kviz-light .launch__plate { box-shadow: 0 8px 0 #5e4616; }
html.kviz-light .launch__curtain, html.kviz-light .launch__bit, html.kviz-light .launch__shelf.is-fb::after { box-shadow: none; }
html.kviz-light .pc { box-shadow: -4px 8px 0 rgba(43, 29, 18, 0.45); }
