/* ─── The banner's pool table (UV, 14 Nov; DECISIONS 14 Nov) ───
   scripts/banner-table.js puts a wrapper (.banner-wrap) round each top banner marked
   data-banner-table and draws the table and balls in it. None of this applies under
   less motion: the script adds nothing, and the banner is league.css's .jumbo as it
   was. Load after league.css (and league-join.css, whose corner icons it moves).
   In layers: the table and trails under the banner's text, the balls over it, each
   ball's see-through body a frosted circle (a backdrop blur). */
.banner-wrap { position: relative; }

/* No edge but the table's (UV, 14 Nov: "the cushions and pockets are the edge"): the
   banner's green line and its own sunken card are not drawn */
.banner-wrap > .jumbo::before { visibility: hidden; }
.banner-wrap > .jumbo {
	z-index: 1;   /* the banner's content over the table */
	box-shadow: none;
	/* The content keeps the gap it had to the banner's line (league.css .jumbo: its
	   padding less the line's inset, --space-2), now from the cushions (UV, 14 Nov:
	   "everything is sitting too close to the edge of the table"): the script says how
	   far in from the banner's edge each pair of cushions sits (--banner-in-x, -z) */
	--banner-pad: calc(var(--space-5) + var(--space-2));
	padding: calc(var(--banner-pad) - var(--space-2) + var(--banner-in-z, var(--space-2))) max(0px, calc(var(--banner-pad) - var(--space-2) + var(--banner-in-x, var(--space-2))));
}
@media (max-width: 30rem) {
	.banner-wrap > .jumbo { --banner-pad: calc(var(--space-4) + var(--space-2)); }
}
/* The gap under the banner is measured from the table as drawn (UV, 24 Nov: "too much
   space above the I'm interested button"): its lowest pocket stops short of the banner's
   foot by --banner-out-z (the script), which comes off league.css's --space-5 */
.banner-wrap > .jumbo { margin-bottom: max(0px, calc(var(--space-5) - var(--banner-out-z, 0px))); }
/* The corner icons (Share, the way in; league-join.css) keep their gap to the corner
   in from the cushions too, clear of the corner pocket */
.banner-wrap > .jumbo > .lj-corner {
	top: calc(var(--space-4) - var(--space-2) + var(--banner-in-z, var(--space-2)));
	right: max(0px, calc(var(--space-4) - var(--space-2) + var(--banner-in-x, var(--space-2))));
}

/* Level with the banner and wider than it by the page card's side margin (the script
   sets top, left, right and height): the table reaches out into that margin */
.banner-table,
.banner-balls {
	position: absolute;
	width: auto;
	pointer-events: none;
}
.banner-table { z-index: 0; }
.banner-balls { z-index: 3; }
/* The frosted circles' box (16 Nov): over the banner's text, under the balls, the balls'
   canvas's size (the script sets top, left, right and height), clipping a circle that
   reaches past it so the page never scrolls sideways */
.banner-frosts {
	position: absolute;
	z-index: 2;
	overflow: hidden;
	overflow: clip;
	pointer-events: none;
}
.banner-frost {
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 50%;
	pointer-events: none;
	-webkit-backdrop-filter: blur(var(--banner-frost, 3px));
	backdrop-filter: blur(var(--banner-frost, 3px));
	will-change: transform;
}
