/*
 * Prize tile (16 Oct 2026) — Essential Comps' built-in artwork for Cash and Essential Points
 * prizes that have no uploaded image (EC_PrizeArtwork). The amount IS the picture: navy card,
 * a single teal light source, the amount set large in Manrope. Points carry the coins mark and a
 * faint magenta edge (magenta = Instant Win contexts only, site.css). Scales with its box
 * (container units), so the same markup serves a 40px HQ thumbnail and a 400px prize card.
 * Always dark, in light HQ too — it is an image, not a surface.
 */
.ec-prize-tile {
	--ec-prize-tile-glow: rgba(44, 213, 227, 0.42);
	--ec-prize-tile-edge: rgba(103, 230, 240, 0.28);
	container-type: inline-size;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2cqi;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	isolation: isolate;
	border-radius: inherit;
	background:
		radial-gradient(120% 90% at 50% -10%, var(--ec-prize-tile-glow) 0%, rgba(44, 213, 227, 0.08) 38%, rgba(6, 12, 22, 0) 62%),
		radial-gradient(80% 60% at 50% 120%, rgba(16, 182, 200, 0.18) 0%, rgba(6, 12, 22, 0) 70%),
		linear-gradient(160deg, #13233a 0%, #0a1424 46%, #060c16 100%);
	box-shadow: inset 0 0 0 1px var(--ec-prize-tile-edge), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: #edf5fb;
	font-family: 'Manrope', var(--ec-font-family-base, system-ui), sans-serif;
	text-align: center;
	line-height: 1;
	user-select: none;
}

/* Fine diagonal light line — the "charge" accent, static. */
.ec-prize-tile::before {
	content: '';
	position: absolute;
	inset: -40% -60%;
	z-index: -1;
	background: linear-gradient(115deg, rgba(103, 230, 240, 0) 44%, rgba(103, 230, 240, 0.14) 50%, rgba(103, 230, 240, 0) 56%);
	pointer-events: none;
}

.ec-prize-tile--points {
	--ec-prize-tile-glow: rgba(44, 213, 227, 0.36);
	--ec-prize-tile-edge: rgba(240, 96, 200, 0.26);
	background:
		radial-gradient(120% 90% at 50% -10%, var(--ec-prize-tile-glow) 0%, rgba(44, 213, 227, 0.06) 38%, rgba(6, 12, 22, 0) 62%),
		radial-gradient(70% 55% at 100% 110%, rgba(240, 96, 200, 0.2) 0%, rgba(6, 12, 22, 0) 70%),
		linear-gradient(160deg, #13233a 0%, #0a1424 46%, #060c16 100%);
}

.ec-prize-tile__mark {
	display: inline-flex;
	color: #67e6f0;
	filter: drop-shadow(0 0 6px rgba(44, 213, 227, 0.55));
}

.ec-prize-tile__mark svg {
	width: 11cqi;
	height: 11cqi;
}

.ec-prize-tile__amount {
	font-size: clamp(0.7rem, 24cqi, 7rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	font-variant-numeric: lining-nums tabular-nums;
	background: linear-gradient(180deg, #ffffff 0%, #d8fbfd 55%, #a6f2f8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-shadow: 0 0 24px rgba(44, 213, 227, 0.18);
}

.ec-prize-tile--points .ec-prize-tile__amount {
	font-size: clamp(0.7rem, 19cqi, 6rem);
}

.ec-prize-tile__label {
	font-size: clamp(0.45rem, 6.2cqi, 1.2rem);
	font-weight: 800;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #a6f2f8;
}

.ec-prize-tile__sub {
	font-size: clamp(0.45rem, 5.4cqi, 1rem);
	font-weight: 600;
	color: #a5b7cb;
}

/* Thumbnail use (HQ lists, tiny chips): the amount alone. */
.ec-prize-tile--mini {
	aspect-ratio: 1;
	gap: 0;
}

.ec-prize-tile--mini .ec-prize-tile__amount {
	font-size: 30cqi;
}

.ec-prize-tile--mini .ec-prize-tile__label,
.ec-prize-tile--mini .ec-prize-tile__sub,
.ec-prize-tile--mini .ec-prize-tile__mark {
	display: none;
}

/* The hidden attribute always wins inside HQ forms (16 Oct 2026). A display rule on a field
   class (e.g. .ec-hq-form-field { display: flex }) silently beat [hidden], so prize-type fields
   that were meant to disappear stayed on screen, disabled ("greyed out"). */
.ec-hq-form [hidden],
.ec-hq-wizard-prize [hidden],
.ec-hq-form-field[hidden] {
	display: none !important;
}
