/* P03 reveal grammar + paper fx (SHOW_BIBLE 1.2 / 1.9). reveal.js + fx.js draw into .fx:
   above the game DOM and the vignette, below the ribbon's flags. Transform/opacity only. */
.fx { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; perspective: 900px; }

/* confetti: 22 × 34 card with a 3 px ink edge, 5 palette colours; shards: torn kraft triangles */
.fx__bit { position: absolute; left: 0; top: 0; z-index: 2; will-change: transform, opacity; }
.fx__confetti { width: 22px; height: 34px; box-sizing: border-box; border: 3px solid var(--ink); background: var(--c); border-radius: 2px; }
.fx__shard { width: 34px; height: 26px; background: var(--ink); clip-path: polygon(0 100%, 48% 0, 100% 74%, 62% 62%); }
.fx__shard::before { content: ""; position: absolute; inset: 3px; background: var(--c); clip-path: inherit; }

/* M/L: the Kit-card strip ON the answer object (cd-kickoff 1): 112 px answer, Ink 3 px edge, a torn kraft
   sheet 8 px behind, the 60 px verdict rubber stamp over its right third, one brass split pin */
.rv-banner {
  position: absolute; left: 0; top: 0; translate: -50% -50%; z-index: 1;
  max-width: 1480px; box-sizing: border-box;
  font: 400 var(--t-reveal, 112px)/1 var(--font-display); text-transform: uppercase; text-align: center;
  opacity: 0; will-change: transform, opacity;
}
.rv-banner b {
  position: relative; display: flex; align-items: center; justify-content: center; min-height: 190px; box-sizing: border-box;
  padding: 26px 64px 30px; font-weight: 400; text-wrap: balance;
  background: var(--paper-grain), var(--kit-card, #f3e7cf); color: var(--ink); border: 3px solid var(--ink); box-shadow: var(--paper-lift); /* P13 lit paper: thickness lower-right, then the key's cast shadow */
}
/* the torn kraft sheet behind the strip: offset 8 px, ragged bottom edge */
.rv-banner::before {
  content: ""; position: absolute; inset: 8px -8px -12px 8px; background: #c49a6c;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 94% 100%, 86% 91%, 74% 100%, 61% 92%, 47% 100%, 34% 90%, 20% 99%, 9% 91%, 0 100%);
}
.rv-banner.is-bare::before { display: none; }
.rv-verdict {
  position: absolute; right: 18px; bottom: -34px; padding: 2px 18px 6px;
  font: 400 60px/1 var(--font-display); font-style: normal; text-transform: uppercase; white-space: nowrap; /* 60 px: the verdict, not a second headline */
  color: #e0452c; border: 6px solid currentColor; border-radius: 6px; rotate: -6deg;
  background: rgba(243, 231, 207, 0.9);
}
.rv-banner.is-bare .rv-verdict { position: static; display: inline-block; }
.rv-banner.is-wrong .rv-verdict { color: var(--ink); rotate: 2deg; }
/* the foil split pin through the strip's top-left corner: it turns in 180 ms after the slam */
/* a brass split pin (round head, one slot, two splayed legs), never an × */
.rv-pin { position: absolute; left: 22px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: #c9a14a; border: 3px solid var(--ink); box-sizing: border-box; box-shadow: 0 3px 0 rgba(43, 33, 24, 0.45); }
.rv-pin::before { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 4px; margin: -2px 0 0 -7px; background: var(--ink); border-radius: 2px; rotate: -30deg; }
.rv-pin::after { content: ""; position: absolute; left: 3px; top: 24px; width: 18px; height: 12px; border: solid #a8843a; border-width: 0 4px; border-radius: 0 0 4px 4px; transform: perspective(40px) rotateX(-40deg); z-index: -1; }
.rv-banner.is-bare .rv-pin { display: none; }

/* S: the bare rubber stamp straight on the item. TOČNO. rocket red, KARTON OPRAŠTA. Ink (never red) */
.rv-stamp {
  position: absolute; left: 0; top: 0; translate: -50% -50%; z-index: 1;
  padding: 0 16px 4px; white-space: nowrap;
  font: 400 46px/1.05 var(--font-display); text-transform: uppercase;
  color: #e0452c; border: 5px solid currentColor; border-radius: 6px; background: rgba(243, 231, 207, 0.9);
  opacity: 0; will-change: transform, opacity;
}
.rv-stamp.is-wrong { color: var(--ink); background: rgba(201, 165, 106, 0.92); }

/* M/L house lights over the game DOM: below the strip (z 5) and the ribbon (z 5, later in the DOM), a soft lit
   hole on the answer object (reveal.js sets --hole = "rx ry at x y"); opacity is the only thing that moves */
.rv-dim {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse var(--hole, 400px 300px at 960px 480px), transparent 0 64%, rgba(5, 7, 15, 0.65) 74%);
}

/* P03: ≤ 12 tables every +N is a lane flag too (y 880–924, 34 px, a stick down to its chip), never the old
   staggered in-chip flags that rose over the game; the leader's gold flag keeps its stick */
.hud--big .chip__flag--lane { height: 44px; font-size: var(--t-min, 34px); line-height: 38px; }
.hud--big .chip__flag--lane.chip__flag--lead::after { display: block; height: var(--stick, 0px); }
/* P15A motion grammar (fx.collage / fx.kinetic): the in-flight hard shadow (a class swap, never tweened) and the type mask */
.fx-fly { filter: drop-shadow(8px 12px 0 rgba(43, 33, 24, 0.35)); }
.fx-mask { display: block; overflow: hidden; }
.fx-mask > span { display: block; }
