/**
 * Spokane Tribe Casino — venue screen, ticker view
 *
 * A second screen view alongside the one-at-a-time carousel in
 * contest-display.css. Where that shows one costume as large as the screen
 * allows, this slides a row of them sideways so a lot of entries are visible
 * at once — what the Spokane Tribe team asked for after seeing the carousel.
 *
 * Layered ON TOP of contest-display.css, which is enqueued for both screen
 * views. That file owns the kiosk shell: the fixed full-bleed `.stc-screen`
 * root, hiding theme chrome, and the per-contest background art and colour
 * custom properties. Nothing here repeats any of it.
 *
 * Sized entirely in vh off --stc-photo-h, so the one-row and two-row modes
 * share every rule and the layout survives whatever panel it ends up on.
 */

/* ---------- rows ---------- */

.stc-screen--ticker {
	/* Overridden per mode below. One row can afford a much taller card. */
	/* Entries are identified by number alone, so there is no caption strip
	   under the photo and the card is the photo. Both modes grew a little into
	   the space that strip used to hold. */
	--stc-photo-h: 58vh;
	--stc-card-w: calc(var(--stc-photo-h) * 0.75);   /* photos are stored 3:4 */
	--stc-card-gap: 2vh;
}

.stc-screen--ticker[data-rows="2"] {
	--stc-photo-h: 35vh;
}

.stc-ticker-rows {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 3vh;
}

/*
 * Each row clips its own track. The root is `overflow: hidden` too, but a row
 * that doesn't clip would let the recycled card at the tail paint over its
 * neighbour for a frame before the transform lands.
 */
.stc-ticker-row {
	position: relative;
	flex: none;
	height: var(--stc-photo-h);
	overflow: hidden;
}

/*
 * The conveyor. JS owns `transform` and nothing else — no CSS transition on
 * it, or every frame would fight the one before it.
 *
 * `will-change` promotes the track to its own layer: this runs for two hours
 * straight on a machine also decoding a few hundred JPEGs.
 */
.stc-ticker-track {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: flex-start;
	gap: var(--stc-card-gap);
	will-change: transform;
}

/* ---------- a card ---------- */

.stc-ticker-card {
	flex: none;
	width: var(--stc-card-w);
}

.stc-ticker-shot {
	position: relative;
	width: 100%;
	height: var(--stc-photo-h);
	border-radius: 1.6vh;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.35);
}

.stc-ticker-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/*
 * The number is the point of the whole screen — it's what a guest types into
 * the jump box on their phone — so it gets the loud treatment and the costume
 * name stays quiet underneath.
 */
.stc-ticker-num {
	position: absolute;
	top: 0;
	left: 0;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 1.7em;
	height: 1.5em;
	padding: 0 0.25em;

	background: var(--stc-screen-accent);
	color: var(--stc-screen-on-accent);
	/* Scaled off the card, not the viewport, so it holds its proportion in
	   both row modes. The carousel's 10vh badge is sized for one photo filling
	   the screen; at 54vh of card that lands at ~45% of the card width and
	   buries the costume. */
	font-size: calc(var(--stc-photo-h) * 0.105);
	font-weight: 800;
	line-height: 1;
	border-radius: 1.6vh 0 1.6vh 0;
	text-align: center;
}


/* Nothing approved yet. A black screen in front of the room reads as broken. */
.stc-screen--ticker .stc-screen-empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	text-align: center;
}

.stc-screen--ticker [hidden] { display: none !important; }

/* ==========================================================================
   Theme: Spokane Dead 2026
   --------------------------------------------------------------------------
   The colour properties and the background photo come from the shared block
   in contest-display.css — `.stc-screen.stc-contest--halloween-2026` matches
   this page too. Only the ticker's own type needs saying.
   ========================================================================== */

.stc-screen--ticker.stc-contest--halloween-2026 .stc-ticker-num {
	font-family: var(--stc-screen-display);
	font-weight: 400;
	/* Primal Scream's glyphs run small in the em box next to a system face. */
	font-size: calc(var(--stc-photo-h) * 0.13);
	background: linear-gradient(180deg, #d8df25, #90c73e);
}

.stc-screen--ticker.stc-contest--halloween-2026 .stc-screen-empty {
	font-family: var(--stc-screen-display);
	font-size: 6vh;
	text-transform: uppercase;
	color: var(--stc-screen-accent);
	text-shadow: 2px 2px 0 #050405;
}
