/*
 * ecomPay Skill Comps: shortcode styles.
 * Fonts: Cal Sans (headings, numbers) + Elms Sans (body), loaded from Google Fonts.
 * Everything is scoped under .ecp so theme / Elementor / block styles don't bleed in or out.
 * Restyle with CSS variables, e.g.  .ecp { --ecp-accent: #e11d48; --ecp-accent-2: #f97316; }
 * Layout adapts to the width of the column it's in (container queries), not the screen.
 * Brand colour, fonts and corners can be set once on WooCommerce > Skill Comp Settings.
 */

@property --ecp-angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}

/* ---------- Tokens: light ---------- */
.ecp {
	--ecp-accent: #7c3aed;
	--ecp-accent-2: #ec4899;
	--ecp-accent-3: #f97316;
	--ecp-cyan: #06b6d4;
	--ecp-green: #10b981;
	--ecp-gold: #f59e0b;
	--ecp-ink: #ffffff;
	--ecp-grad: linear-gradient(120deg, var(--ecp-accent) 0%, var(--ecp-accent-2) 55%, var(--ecp-accent-3) 100%);

	--ecp-bg: #ffffff;
	--ecp-surface: #f5f2ff;
	--ecp-surface-2: #ede8ff;
	--ecp-text: #1b1033;
	--ecp-muted: #6b6485;
	--ecp-glow: rgba(124, 58, 237, .28);
	--ecp-shadow: 0 30px 60px -30px var(--ecp-glow), 0 10px 30px -18px rgba(27, 16, 51, .18);

	--ecp-tint-violet: color-mix(in srgb, var(--ecp-accent) 11%, var(--ecp-bg));
	--ecp-tint-pink: color-mix(in srgb, var(--ecp-accent-2) 11%, var(--ecp-bg));
	--ecp-tint-amber: color-mix(in srgb, var(--ecp-gold) 14%, var(--ecp-bg));
	--ecp-tint-cyan: color-mix(in srgb, var(--ecp-cyan) 12%, var(--ecp-bg));
	--ecp-tint-green: color-mix(in srgb, var(--ecp-green) 12%, var(--ecp-bg));

	--ecp-radius: 26px;
	--ecp-radius-sm: 16px;
	--ecp-pill: 999px;
	--ecp-hw: 400;
	--ecp-head: 'Cal Sans', 'Elms Sans', ui-sans-serif, system-ui, sans-serif;
	--ecp-body: 'Elms Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

	font-family: var(--ecp-body);
	color: var(--ecp-text);
	line-height: 1.55;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	font-synthesis: none;
	transition: color .4s ease;
}

/* ---------- Tokens: dark ---------- */
.ecp.ecp-theme-dark {
	--ecp-bg: #140d2b;
	--ecp-surface: #1f1641;
	--ecp-surface-2: #2a1f55;
	--ecp-text: #f7f4ff;
	--ecp-muted: #b5abd8;
	--ecp-glow: rgba(168, 85, 247, .45);
	--ecp-shadow: 0 30px 70px -30px var(--ecp-glow), 0 10px 30px -18px rgba(0, 0, 0, .6);
	--ecp-tint-violet: color-mix(in srgb, var(--ecp-accent) 24%, var(--ecp-bg));
	--ecp-tint-pink: color-mix(in srgb, var(--ecp-accent-2) 22%, var(--ecp-bg));
	--ecp-tint-amber: color-mix(in srgb, var(--ecp-gold) 20%, var(--ecp-bg));
	--ecp-tint-cyan: color-mix(in srgb, var(--ecp-cyan) 20%, var(--ecp-bg));
	--ecp-tint-green: color-mix(in srgb, var(--ecp-green) 20%, var(--ecp-bg));
}
@media (prefers-color-scheme: dark) {
	.ecp.ecp-theme-auto {
		--ecp-bg: #140d2b;
		--ecp-surface: #1f1641;
		--ecp-surface-2: #2a1f55;
		--ecp-text: #f7f4ff;
		--ecp-muted: #b5abd8;
		--ecp-glow: rgba(168, 85, 247, .45);
		--ecp-shadow: 0 30px 70px -30px var(--ecp-glow), 0 10px 30px -18px rgba(0, 0, 0, .6);
		--ecp-tint-violet: color-mix(in srgb, var(--ecp-accent) 24%, var(--ecp-bg));
		--ecp-tint-pink: color-mix(in srgb, var(--ecp-accent-2) 22%, var(--ecp-bg));
		--ecp-tint-amber: color-mix(in srgb, var(--ecp-gold) 20%, var(--ecp-bg));
		--ecp-tint-cyan: color-mix(in srgb, var(--ecp-cyan) 20%, var(--ecp-bg));
		--ecp-tint-green: color-mix(in srgb, var(--ecp-green) 20%, var(--ecp-bg));
	}
}

/* ---------- Base ---------- */
.ecp *, .ecp *::before, .ecp *::after { box-sizing: border-box; }
.ecp p { margin: 0; }
.ecp img { max-width: 100%; display: block; }
.ecp a { color: var(--ecp-accent); }
.ecp .ecp-icon { flex: none; }
.ecp .ecp-muted { color: var(--ecp-muted); }
.ecp .ecp-label {
	display: flex; align-items: center; gap: 6px;
	font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--ecp-muted);
}

/* ---------- Motion ---------- */
@keyframes ecp-in { from { opacity: 0; transform: translateY(28px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ecp-in-soft { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ecp-shift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes ecp-spin { to { --ecp-angle: 360deg; } }
@keyframes ecp-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@keyframes ecp-flip { 0% { transform: translateY(-45%) rotateX(70deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ecp-pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes ecp-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes ecp-float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-18px, 14px) scale(1.08); } }
@keyframes ecp-confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; } }
@keyframes ecp-medal { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes ecp-toggle { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

.ecp .ecp-reveal { animation: ecp-in .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@supports (animation-timeline: view()) {
	.ecp .ecp-reveal {
		animation: ecp-in linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 35%;
	}
}
.ecp-comp .ecp-body > * { animation: ecp-in-soft .7s cubic-bezier(.2, .8, .2, 1) both; }
.ecp-comp .ecp-body > *:nth-child(2) { animation-delay: .08s; }
.ecp-comp .ecp-body > *:nth-child(3) { animation-delay: .14s; }
.ecp-comp .ecp-body > *:nth-child(4) { animation-delay: .2s; }
.ecp-comp .ecp-body > *:nth-child(5) { animation-delay: .26s; }
.ecp-comp .ecp-body > *:nth-child(n+6) { animation-delay: .32s; }

/* ---------- Buttons ---------- */
.ecp .ecp-btn, .ecp button.ecp-btn, .ecp a.ecp-btn {
	-webkit-appearance: none; appearance: none;
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 56px; padding: 0 30px; margin: 0;
	border: 0; border-radius: var(--ecp-pill);
	background: var(--ecp-grad); background-size: 220% 220%;
	animation: ecp-shift 7s ease infinite;
	color: var(--ecp-ink);
	font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 18px; line-height: 1; letter-spacing: .01em;
	text-transform: none; text-decoration: none;
	cursor: pointer;
	box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--ecp-accent-2) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
/* Themes often force a link colour (sometimes with !important). Button text must stay readable. */
.ecp .ecp-btn.ecp-btn:not(.ecp-btn-ghost),
.ecp .ecp-btn.ecp-btn:not(.ecp-btn-ghost):hover,
.ecp .ecp-btn.ecp-btn:not(.ecp-btn-ghost):focus,
.ecp .ecp-btn.ecp-btn:not(.ecp-btn-ghost):visited { color: var(--ecp-ink) !important; text-decoration: none !important; }
.ecp .ecp-btn::after {
	content: ""; position: absolute; inset: 0; z-index: -1; width: 40%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
	transform: translateX(-120%) skewX(-20deg);
}
.ecp .ecp-btn:hover { transform: translateY(-2px) scale(1.015); color: var(--ecp-ink); box-shadow: 0 20px 36px -12px color-mix(in srgb, var(--ecp-accent-2) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.ecp .ecp-btn:hover::after { animation: ecp-shine .9s ease; }
.ecp .ecp-btn:active { transform: translateY(0) scale(.99); }
.ecp .ecp-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--ecp-accent) 45%, transparent); outline-offset: 3px; }
.ecp .ecp-btn[disabled], .ecp .ecp-btn.is-busy { opacity: .55; pointer-events: none; }
.ecp .ecp-btn-block { width: 100%; }
.ecp .ecp-btn-sm { flex: none; white-space: nowrap; min-height: 40px; padding: 0 18px; font-size: 15px; box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--ecp-accent-2) 70%, transparent); }
.ecp .ecp-btn-ghost { background: var(--ecp-tint-violet); color: var(--ecp-accent); animation: none; box-shadow: none; }
.ecp .ecp-btn-ghost:hover { color: var(--ecp-accent); box-shadow: none; }
.ecp .ecp-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.ecp .ecp-link:hover { text-decoration: underline; }

/* Theme toggle */
.ecp .ecp-theme-toggle, .ecp button.ecp-theme-toggle {
	-webkit-appearance: none; appearance: none;
	width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	display: grid; place-items: center; cursor: pointer;
	background: var(--ecp-surface); color: var(--ecp-text);
	box-shadow: 0 6px 16px -8px var(--ecp-glow);
	transition: transform .25s ease, background .3s ease;
}
.ecp .ecp-theme-toggle:hover { transform: rotate(18deg) scale(1.06); background: var(--ecp-surface-2); }
.ecp .ecp-theme-toggle svg { animation: ecp-toggle .4s cubic-bezier(.2, .8, .2, 1); }
.ecp .ecp-sun { display: none; }
.ecp.ecp-theme-dark .ecp-sun { display: block; }
.ecp.ecp-theme-dark .ecp-moon { display: none; }
@media (prefers-color-scheme: dark) {
	.ecp.ecp-theme-auto .ecp-sun { display: block; }
	.ecp.ecp-theme-auto .ecp-moon { display: none; }
}

/* ---------- Inputs ---------- */
.ecp input[type="number"] {
	-webkit-appearance: none; appearance: none; -moz-appearance: textfield;
	width: 100%; min-width: 0; height: 58px; margin: 0; padding: 0 16px;
	border: 2px solid transparent; border-radius: var(--ecp-radius-sm);
	background: linear-gradient(var(--ecp-surface), var(--ecp-surface)) padding-box, linear-gradient(var(--ecp-surface), var(--ecp-surface)) border-box;
	color: var(--ecp-text);
	font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 20px; box-shadow: none;
	transition: background .25s ease, box-shadow .25s ease;
}
.ecp input[type="number"]::-webkit-outer-spin-button,
.ecp input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ecp input[type="number"]:hover { background: linear-gradient(var(--ecp-surface-2), var(--ecp-surface-2)) padding-box, linear-gradient(var(--ecp-surface-2), var(--ecp-surface-2)) border-box; }
/* Focus: the box lifts onto a white card with a soft shadow. No ring. */
.ecp input[type="number"]:focus {
	outline: none;
	background: linear-gradient(var(--ecp-bg), var(--ecp-bg)) padding-box, linear-gradient(var(--ecp-bg), var(--ecp-bg)) border-box;
	box-shadow: 0 14px 30px -14px var(--ecp-glow), 0 3px 12px -4px rgba(20, 20, 40, .22);
}
.ecp input[type="number"]::placeholder { color: var(--ecp-muted); font-family: var(--ecp-body); font-weight: 500; font-size: 17px; opacity: .85; }

/* ---------- Single competition card ---------- */
.ecp-comp {
	container-type: inline-size;
	position: relative;
	background: var(--ecp-bg);
	border-radius: var(--ecp-radius);
	box-shadow: var(--ecp-shadow);
	overflow: hidden;
	overflow: clip; /* can't be scrolled by focusing an input */
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0 0 28px;
	transition: background .4s ease, box-shadow .4s ease;
}
.ecp-comp .ecp-notices { grid-column: 1 / -1; padding: 18px 26px 0; position: relative; z-index: 2; }
.ecp-comp .ecp-notices .woocommerce-error,
.ecp-comp .ecp-notices .woocommerce-message,
.ecp-comp .ecp-notices .woocommerce-info { margin: 0 0 8px; border-radius: 14px; }

.ecp-media { position: relative; background: var(--ecp-grad); aspect-ratio: 4 / 3; overflow: hidden; }
.ecp-media .ecp-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 6s cubic-bezier(.2, .8, .2, 1); }
.ecp-comp:hover .ecp-media .ecp-img { transform: scale(1.09); }
.ecp-media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--ecp-accent) 35%, transparent));
	mix-blend-mode: multiply;
}
.ecp-img-placeholder { width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center; color: #fff; background: var(--ecp-grad); background-size: 200% 200%; animation: ecp-shift 8s ease infinite; }
.ecp-img-placeholder .ecp-icon { width: 72px; height: 72px; opacity: .85; }

.ecp .ecp-chip {
	position: absolute; top: 16px; left: 16px; z-index: 2;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .9); color: #1b1033;
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .35);
}
.ecp .ecp-chip-live { background: linear-gradient(120deg, #10b981, #06b6d4); color: #fff; }
.ecp .ecp-chip-ended { background: var(--ecp-grad); color: #fff; }
.ecp .ecp-chip-closed, .ecp .ecp-chip-soon { color: #4b4563; }
.ecp .ecp-pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: ecp-pulse 1.8s infinite; }

.ecp-body { position: relative; padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow: hidden; overflow: clip; }
.ecp-body::before, .ecp-body::after {
	content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(50px);
	animation: ecp-float 14s ease-in-out infinite;
}
.ecp-body::before { width: 260px; height: 260px; top: -110px; right: -80px; background: color-mix(in srgb, var(--ecp-accent-2) 26%, transparent); }
.ecp-body::after { width: 220px; height: 220px; bottom: -120px; left: -90px; background: color-mix(in srgb, var(--ecp-accent) 22%, transparent); animation-delay: -6s; }
.ecp-body > * { position: relative; z-index: 1; }

/* Toggle sits in the card's top-right corner: over the image, or over the panel when there's no image */
.ecp-comp > .ecp-theme-toggle { position: absolute; top: 16px; right: 16px; z-index: 4; }
.ecp-comp:not(.ecp-no-media) > .ecp-theme-toggle { background: rgba(255, 255, 255, .88); color: #1b1033; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ecp .ecp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ecp-comp.ecp-no-media .ecp-eyebrow { padding-right: 52px; }
.ecp .ecp-tag {
	display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
	padding: 6px 12px; border-radius: 999px;
	font-size: 12.5px; font-weight: 700;
}
.ecp .ecp-tag .ecp-icon { width: 14px; height: 14px; }
.ecp .ecp-tag-1 { background: var(--ecp-tint-amber); color: color-mix(in srgb, var(--ecp-gold) 70%, var(--ecp-text)); }
.ecp .ecp-tag-2 { background: var(--ecp-tint-violet); color: color-mix(in srgb, var(--ecp-accent) 80%, var(--ecp-text)); }
.ecp .ecp-tag-3 { background: var(--ecp-tint-green); color: color-mix(in srgb, var(--ecp-green) 70%, var(--ecp-text)); }

.ecp .ecp-title {
	margin: 0; font-family: var(--ecp-head); font-weight: var(--ecp-hw);
	font-size: clamp(28px, 6.2cqi, 44px); line-height: 1.05; letter-spacing: -.01em;
	color: var(--ecp-text);
}
.ecp .ecp-question { font-size: 17px; line-height: 1.6; color: color-mix(in srgb, var(--ecp-text) 82%, var(--ecp-muted)); font-weight: 500; }

/* Stats: coloured tiles, no borders */
.ecp .ecp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.ecp .ecp-stat {
	border-radius: var(--ecp-radius-sm); padding: 14px 16px;
	display: flex; flex-direction: column; gap: 6px; min-width: 0;
	background: var(--ecp-tint-pink);
	transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}
.ecp .ecp-stat:hover { transform: translateY(-3px); }
.ecp .ecp-stat-price { background: var(--ecp-tint-pink); }
.ecp .ecp-stat-price .ecp-value { color: color-mix(in srgb, var(--ecp-accent-2) 85%, var(--ecp-text)); }
.ecp .ecp-stat-win { background: var(--ecp-tint-amber); }
.ecp .ecp-stat-win .ecp-value { color: color-mix(in srgb, var(--ecp-gold) 65%, var(--ecp-text)); }
.ecp .ecp-stat-left { background: var(--ecp-tint-cyan); }
.ecp .ecp-stat-left .ecp-value { color: color-mix(in srgb, var(--ecp-cyan) 70%, var(--ecp-text)); }
.ecp .ecp-value { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 22px; line-height: 1.1; }
.ecp .ecp-value small { font-family: var(--ecp-body); font-size: 12px; font-weight: 700; color: var(--ecp-muted); }

/* The countdown tile gets the full gradient */
.ecp .ecp-stat-wide {
	grid-column: 1 / -1;
	background: var(--ecp-grad); background-size: 200% 200%; animation: ecp-shift 10s ease infinite;
	color: #fff; box-shadow: 0 16px 30px -18px var(--ecp-accent-2);
}
.ecp .ecp-stat-wide .ecp-label { color: rgba(255, 255, 255, .88); }
.ecp .ecp-stat-wide:hover { transform: none; }

/* Countdown */
.ecp .ecp-countdown { display: flex; gap: 8px; font-variant-numeric: tabular-nums; perspective: 400px; }
.ecp .ecp-cd-unit {
	flex: 1 1 0; max-width: 78px; min-width: 0;
	display: flex; flex-direction: column; align-items: center;
	padding: 8px 2px 6px; border-radius: 14px;
	background: rgba(255, 255, 255, .18);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.ecp .ecp-cd-unit[hidden] { display: none; }
.ecp .ecp-cd-unit b { display: block; font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 30px; line-height: 1.05; }
.ecp .ecp-cd-unit b.is-tick { animation: ecp-flip .45s cubic-bezier(.2, .8, .2, 1); }
.ecp .ecp-cd-unit i { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.ecp .ecp-countdown.is-ended { font-family: var(--ecp-head); font-size: 22px; }
.ecp .ecp-countdown.is-compact { gap: 5px; align-items: baseline; perspective: none; }
.ecp .ecp-cd-prefix { font-size: 12px; font-weight: 700; margin-right: 2px; }
.ecp .ecp-countdown.is-compact .ecp-cd-unit { flex: none; max-width: none; flex-direction: row; min-width: 0; padding: 0; background: none; box-shadow: none; gap: 1px; align-items: baseline; }
.ecp .ecp-countdown.is-compact .ecp-cd-unit b { font-size: 13px; }
.ecp .ecp-countdown.is-compact .ecp-cd-unit i { font-size: 11px; text-transform: none; letter-spacing: 0; opacity: .85; }

/* Entry form (checkout mode) */
.ecp .ecp-entry, .ecp .ecp-play { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.ecp .ecp-entry-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ecp .ecp-stepper { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 5px; background: var(--ecp-surface); }
.ecp .ecp-stepper input[type="number"] { width: 58px; height: 42px; border: 0; padding: 0; text-align: center; font-size: 22px; box-shadow: none; background: transparent; }
.ecp .ecp-stepper input[type="number"]:focus { box-shadow: none; background: transparent; }
.ecp .ecp-step, .ecp button.ecp-step {
	-webkit-appearance: none; appearance: none;
	width: 42px; height: 42px; margin: 0; padding: 0; border: 0; border-radius: 50%;
	background: var(--ecp-bg); color: var(--ecp-text);
	font-family: var(--ecp-head); font-size: 22px; font-weight: 400; line-height: 1; cursor: pointer;
	box-shadow: 0 4px 12px -6px var(--ecp-glow);
	transition: transform .15s ease, background .2s ease, color .2s ease;
}
.ecp .ecp-step[data-step="1"] { background: var(--ecp-grad); color: #fff; }
.ecp .ecp-step:hover { transform: scale(1.1); }
.ecp .ecp-step:active { transform: scale(.94); }
.ecp .ecp-step[disabled] { opacity: .35; cursor: default; transform: none; }
.ecp .ecp-cap { font-size: 13px; font-weight: 600; }

.ecp .ecp-guesses { display: grid; gap: 10px; }
.ecp .ecp-guess { position: relative; display: flex; align-items: center; margin: 0; animation: ecp-in-soft .35s cubic-bezier(.2, .8, .2, 1) both; }
.ecp .ecp-guess-n {
	position: absolute; left: 12px; z-index: 1;
	width: 28px; height: 28px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--ecp-grad); color: #fff;
	font-family: var(--ecp-head); font-size: 14px;
	box-shadow: 0 4px 10px -4px var(--ecp-accent-2);
}
.ecp .ecp-guess .ecp-affix { position: absolute; left: 50px; z-index: 1; font-family: var(--ecp-head); font-size: 20px; color: var(--ecp-muted); pointer-events: none; }
.ecp .ecp-guess .ecp-affix-end { left: auto; right: 18px; }
.ecp .ecp-guess input[type="number"] { padding-left: 50px; }
.ecp .ecp-guess .ecp-affix:not(.ecp-affix-end) ~ input[type="number"] { padding-left: 70px; }
.ecp .ecp-guess input[type="number"]:has(~ .ecp-affix-end) { padding-right: 46px; }

.ecp .ecp-entry-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 4px; }
.ecp .ecp-total { display: flex; flex-direction: column; gap: 0; }
.ecp .ecp-total strong {
	font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 34px; line-height: 1.1;
	background: var(--ecp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ecp .ecp-entry-foot .ecp-btn { flex: 1 1 200px; }
.ecp .ecp-fine { font-size: 13px; color: var(--ecp-muted); }

.ecp .ecp-play-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ecp .ecp-play-row .ecp-guess { flex: 1 1 220px; }
.ecp .ecp-play-row .ecp-btn { flex: 0 0 auto; }

/* Bundles (arcade mode) */
.ecp .ecp-bundles-head { margin-bottom: -4px; }
.ecp .ecp-bundles { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 12px; padding-top: 10px; }
.ecp .ecp-bundle {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
	padding: 22px 12px 16px; border-radius: 20px;
	border: 2.5px solid transparent;
	background: linear-gradient(var(--ecp-surface), var(--ecp-surface)) padding-box, linear-gradient(var(--ecp-surface), var(--ecp-surface)) border-box;
	color: var(--ecp-text); text-decoration: none;
	transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease;
}
.ecp .ecp-bundle:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 22px 36px -18px var(--ecp-glow); color: var(--ecp-text); }
.ecp .ecp-bundle.is-best {
	background: linear-gradient(var(--ecp-bg), var(--ecp-bg)) padding-box,
		conic-gradient(from var(--ecp-angle), var(--ecp-accent), var(--ecp-accent-2), var(--ecp-accent-3), var(--ecp-gold), var(--ecp-accent)) border-box;
	animation: ecp-spin 4s linear infinite;
	box-shadow: 0 20px 40px -20px var(--ecp-accent-2);
}
.ecp .ecp-bundle.is-best:hover { transform: translateY(-6px) scale(1.02); }
.ecp .ecp-best {
	position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
	padding: 5px 12px; border-radius: 999px;
	background: var(--ecp-grad); color: #fff;
	font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
	box-shadow: 0 8px 18px -8px var(--ecp-accent-2);
	animation: ecp-bob 2.4s ease-in-out infinite;
}
.ecp .ecp-b-n {
	font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 44px; line-height: 1;
	background: var(--ecp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ecp .ecp-b-l { font-size: 11.5px; font-weight: 800; color: var(--ecp-muted); text-transform: uppercase; letter-spacing: .08em; margin: 4px 0 10px; }
.ecp .ecp-b-p { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 22px; }
.ecp .ecp-b-u { font-size: 12.5px; font-weight: 600; color: var(--ecp-muted); }

/* Panels + result */
.ecp .ecp-panel { padding: 18px 20px; border-radius: var(--ecp-radius-sm); background: var(--ecp-surface); }
.ecp .ecp-panel-muted { color: var(--ecp-muted); }
.ecp .ecp-panel-muted strong { color: var(--ecp-text); }
.ecp .ecp-result { display: flex; flex-direction: column; gap: 12px; }
.ecp .ecp-answer {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border-radius: 20px;
	background: var(--ecp-grad); background-size: 200% 200%; animation: ecp-shift 9s ease infinite;
	color: #fff; box-shadow: 0 20px 40px -20px var(--ecp-accent-2);
}
.ecp .ecp-answer .ecp-label { color: rgba(255, 255, 255, .88); }
.ecp .ecp-answer-value { position: relative; font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: clamp(36px, 9cqi, 56px); line-height: 1.05; letter-spacing: -.01em; }
.ecp .ecp-confetti { position: absolute; inset: 0; pointer-events: none; }
.ecp .ecp-confetti i {
	position: absolute; left: 50%; top: 60%; width: 8px; height: 12px; border-radius: 2px;
	animation: ecp-confetti 1.6s cubic-bezier(.15, .7, .3, 1) forwards;
}
.ecp .ecp-winners { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ecp .ecp-winner {
	display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: var(--ecp-radius-sm);
	background: var(--ecp-surface); animation: ecp-in-soft .6s cubic-bezier(.2, .8, .2, 1) both;
}
.ecp .ecp-winner:nth-child(2) { animation-delay: .1s; }
.ecp .ecp-winner:nth-child(3) { animation-delay: .2s; }
.ecp .ecp-winner:nth-child(n+4) { animation-delay: .3s; }
.ecp .ecp-winner.ecp-rank-1 { background: var(--ecp-tint-amber); }
.ecp .ecp-medal {
	flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
	font-family: var(--ecp-head); font-size: 16px; background: var(--ecp-surface-2); color: var(--ecp-text);
}
.ecp .ecp-rank-1 .ecp-medal { background: linear-gradient(135deg, #fde68a, #f59e0b 60%, #d97706); color: #4a2a00; box-shadow: 0 6px 16px -6px #f59e0b; animation: ecp-medal 2.2s ease-in-out infinite; }
.ecp .ecp-rank-2 .ecp-medal { background: linear-gradient(135deg, #f1f5f9, #cbd5e1 60%, #94a3b8); color: #1e293b; }
.ecp .ecp-rank-3 .ecp-medal { background: linear-gradient(135deg, #fed7aa, #f59e6b 60%, #c2410c); color: #431407; }
.ecp .ecp-w-name { flex: 1; font-weight: 800; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecp .ecp-w-guess { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--ecp-head); font-size: 19px; }
.ecp .ecp-w-guess small { font-family: var(--ecp-body); font-size: 12px; font-weight: 600; color: var(--ecp-muted); }

/* Trust line (hidden by default; show_seal="yes") */
.ecp .ecp-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 12.5px; color: var(--ecp-muted); }
.ecp .ecp-trust-a, .ecp .ecp-trust-b { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ecp .ecp-trust-a { flex-wrap: nowrap; align-items: flex-start; }
.ecp .ecp-trust code { font-size: .9em; background: var(--ecp-surface); padding: 1px 6px; border-radius: 6px; }

/* Narrow cards: tighter tags so they sit two to a line, bundles stay three across */
@container (max-width: 420px) {
	.ecp .ecp-bundles { gap: 8px; }
	.ecp .ecp-bundle { padding: 20px 6px 12px; border-radius: 16px; }
	.ecp .ecp-b-n { font-size: 34px; }
	.ecp .ecp-b-l { font-size: 10px; margin: 2px 0 8px; }
	.ecp .ecp-b-p { font-size: 18px; }
	.ecp .ecp-b-u { font-size: 11px; }
	.ecp .ecp-best { font-size: 9.5px; padding: 4px 8px; }
	.ecp .ecp-tag { font-size: 11.5px; padding: 5px 10px; gap: 5px; }
	.ecp .ecp-eyebrow { gap: 6px; }
}

/* Split layout when the container is wide enough */
@container (min-width: 480px) {
	.ecp-comp .ecp-body { padding: 30px 30px 28px; }
}
@container (min-width: 760px) {
	.ecp-comp.ecp-layout-split:not(.ecp-no-media) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
	.ecp-comp.ecp-layout-split .ecp-media { aspect-ratio: auto; min-height: 100%; }
	.ecp-comp.ecp-layout-split .ecp-body { padding: 38px 38px 34px; }
}
@supports not (container-type: inline-size) {
	@media (min-width: 900px) {
		.ecp-comp.ecp-layout-split:not(.ecp-no-media) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
		.ecp-comp.ecp-layout-split .ecp-media { aspect-ratio: auto; }
	}
}

/* ---------- Grid ---------- */
.ecp-grid-wrap { container-type: inline-size; margin: 0 0 28px; }
.ecp .ecp-grid-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ecp .ecp-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@container (min-width: 860px) {
	.ecp .ecp-grid { grid-template-columns: repeat(var(--ecp-cols, 3), minmax(0, 1fr)); }
}
.ecp .ecp-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: var(--ecp-bg); color: var(--ecp-text); text-decoration: none;
	border-radius: var(--ecp-radius);
	box-shadow: var(--ecp-shadow);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, background .4s ease;
}
.ecp .ecp-card:hover { transform: translateY(-8px) rotate(-.4deg); box-shadow: 0 40px 70px -30px var(--ecp-glow), 0 12px 30px -18px rgba(0, 0, 0, .2); color: var(--ecp-text); }
.ecp .ecp-card-media { position: relative; aspect-ratio: 4 / 3; background: var(--ecp-grad); overflow: hidden; }
.ecp .ecp-card-media .ecp-img, .ecp .ecp-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.ecp .ecp-card:hover .ecp-card-media img { transform: scale(1.08); }
.ecp .ecp-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--ecp-accent) 40%, transparent)); mix-blend-mode: multiply; pointer-events: none; }
.ecp .ecp-card-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ecp .ecp-card .ecp-eyebrow { padding-right: 0; }
.ecp .ecp-card-title { margin: 0; font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 24px; line-height: 1.12; color: var(--ecp-text); }
.ecp .ecp-card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ecp .ecp-card-meta { min-width: 0; font-size: 13px; font-weight: 600; color: var(--ecp-muted); }
.ecp .ecp-card-meta b {
	font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 20px;
	background: var(--ecp-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- [ecompay_games]: every live game ----------
 * 1 column on mobile, 2 on tablet, 3 on desktop. Each step also needs enough room in the
 * section itself, so a narrow theme column drops a column instead of crushing the cards. */
.ecp-games-wrap { container: ecpgames / inline-size; margin: 0 0 28px; }
.ecp .ecp-games,
.ecp .ecp-grid.ecp-grid-fixed { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ecp .ecp-games .ecp-comp { margin: 0; }
@media (min-width: 768px) {
	@container ecpgames (min-width: 560px) {
		.ecp .ecp-games,
		.ecp .ecp-grid.ecp-grid-fixed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
}
@media (min-width: 1025px) {
	@container ecpgames (min-width: 900px) {
		.ecp .ecp-games,
		.ecp .ecp-grid.ecp-grid-fixed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
}

/* ---------- Results list ---------- */
.ecp-results { margin: 0 0 28px; }
.ecp .ecp-result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ecp .ecp-result-row {
	display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: center;
	padding: 16px 20px; border-radius: 20px; background: var(--ecp-surface);
	animation: ecp-in-soft .6s cubic-bezier(.2, .8, .2, 1) both;
	transition: transform .25s ease, background .3s ease;
}
.ecp .ecp-result-row:hover { transform: translateX(4px); background: var(--ecp-surface-2); }
.ecp .ecp-rr-title { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 19px; color: var(--ecp-text); text-decoration: none; }
.ecp .ecp-rr-title:hover { color: var(--ecp-accent); }
.ecp .ecp-rr-cell { display: flex; flex-direction: column; gap: 2px; font-weight: 700; min-width: 0; }
.ecp .ecp-rr-cell small { color: var(--ecp-muted); font-weight: 600; }
@media (max-width: 640px) {
	.ecp .ecp-result-row { grid-template-columns: 1fr 1fr; }
	.ecp .ecp-rr-title { grid-column: 1 / -1; }
}

/* My competitions (also My Account > My Competitions) */
.ecp-mine { container: ecpmine / inline-size; }
/* Headings here sit on the site's own page background, not on a card, so they take the site's text colour.
   (A visitor in dark mode on a light site would otherwise get white text on white.) */
.ecp.ecp-mine { color: inherit; }
.ecp .ecp-mine-empty { color: var(--ecp-muted); }
.ecp .ecp-mine-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 26px; line-height: 1.1; color: inherit; }
.ecp .ecp-mine-head span { font-family: var(--ecp-body); font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--ecp-grad); color: #fff; }
.ecp .ecp-mine-head-done { margin-top: 30px; }
.ecp .ecp-mine-head .ecp-mine-count-done { background: var(--ecp-surface-2); color: var(--ecp-text); }

/* ---------- Your estimates (on a card, for the logged-in player) ---------- */
.ecp .ecp-yours { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--ecp-radius-sm); background: var(--ecp-tint-green); }
.ecp .ecp-yours .ecp-label { display: inline-flex; align-items: center; gap: 6px; }
.ecp .ecp-yours .ecp-label b { font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--ecp-bg); color: var(--ecp-text); }
.ecp .ecp-yours-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ecp .ecp-yours-chip { padding: 6px 12px; border-radius: 999px; background: var(--ecp-bg); color: var(--ecp-text); font-weight: 700; font-size: 15px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ecp .ecp-yours-more { background: transparent; color: var(--ecp-muted); }
.ecp .ecp-mine-list { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.ecp .ecp-mine-list .ecp-comp { margin: 0; }
@container ecpmine (min-width: 760px) {
	.ecp .ecp-mine-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ecp .ecp-mine-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.ecp .ecp-mine-empty { display: flex; flex-direction: column; gap: 4px; text-align: center; padding: 28px 20px; }
.ecp .ecp-mine-empty strong { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 24px; color: var(--ecp-text); }
.csc-thankyou-games .ecp-comp { max-width: 560px; }

/* Editor hint */
.ecp-admin-hint { padding: 10px 14px; background: #fff4e5; color: #b45309; border-radius: 8px; font-size: 14px; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ecp *, .ecp *::before, .ecp *::after { animation: none !important; transition: none !important; }
}


/* =====================================================================
   1.7: brand settings, entry limit, range autofill, packs, product page
   ===================================================================== */

/* ---------- Brand colour from settings: surfaces and glow follow it ---------- */
.ecp.ecp-brand {
	--ecp-glow: color-mix(in srgb, var(--ecp-accent) 30%, transparent);
	--ecp-surface: color-mix(in srgb, var(--ecp-accent) 6%, #ffffff);
	--ecp-surface-2: color-mix(in srgb, var(--ecp-accent) 12%, #ffffff);
}
.ecp.ecp-brand.ecp-theme-dark {
	--ecp-bg: #15151a; --ecp-surface: #202027; --ecp-surface-2: #2b2b35; --ecp-text: #f6f6f8; --ecp-muted: #b3b3c2;
	--ecp-glow: color-mix(in srgb, var(--ecp-accent) 45%, transparent);
}
@media (prefers-color-scheme: dark) {
	.ecp.ecp-brand.ecp-theme-auto {
		--ecp-bg: #15151a; --ecp-surface: #202027; --ecp-surface-2: #2b2b35; --ecp-text: #f6f6f8; --ecp-muted: #b3b3c2;
		--ecp-glow: color-mix(in srgb, var(--ecp-accent) 45%, transparent);
	}
}
.ecp.ecp-brand.ecp-theme-light { --ecp-bg: #ffffff; --ecp-text: #16161d; --ecp-muted: #62626f; }
.ecp.ecp-brand .ecp-chip-live { background: var(--ecp-grad); }
.ecp.ecp-brand .ecp-bundle.is-best { background: var(--ecp-surface-2); animation: none; box-shadow: 0 18px 34px -18px var(--ecp-glow); }

/* ---------- The site's own fonts ---------- */
.ecp.ecp-fonts-site { --ecp-head: inherit; --ecp-body: inherit; --ecp-hw: 700; font-family: inherit; }
.ecp.ecp-fonts-site .ecp-cd-unit b,
.ecp.ecp-fonts-site .ecp-guess-n,
.ecp.ecp-fonts-site .ecp-w-guess,
.ecp.ecp-fonts-site .ecp-medal,
.ecp.ecp-fonts-site .ecp-guess .ecp-affix { font-weight: 700; }

/* ---------- Corners ---------- */
.ecp.ecp-corners-soft { --ecp-radius: 14px; --ecp-radius-sm: 10px; --ecp-pill: 10px; }
.ecp.ecp-corners-square { --ecp-radius: 6px; --ecp-radius-sm: 4px; --ecp-pill: 4px; }
.ecp.ecp-corners-soft .ecp-cd-unit, .ecp.ecp-corners-soft .ecp-bundle, .ecp.ecp-corners-soft .ecp-answer { border-radius: 10px; }
.ecp.ecp-corners-square .ecp-cd-unit, .ecp.ecp-corners-square .ecp-bundle, .ecp.ecp-corners-square .ecp-answer { border-radius: 4px; }

/* ---------- Progress (games with a total entries limit) ---------- */
.ecp .ecp-progress { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border-radius: var(--ecp-radius-sm); background: var(--ecp-surface); color: var(--ecp-text); }
.ecp .ecp-progress-bar { position: relative; height: 12px; border-radius: 999px; background: var(--ecp-surface-2); overflow: hidden; }
.ecp .ecp-progress-bar span { display: block; height: 100%; border-radius: inherit; background: var(--ecp-grad); background-size: 200% 200%; animation: ecp-shift 8s ease infinite; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ecp .ecp-progress-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ecp-muted); }
.ecp .ecp-progress-meta > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ecp .ecp-progress-meta b { color: var(--ecp-accent); font-weight: 800; }
.ecp .ecp-progress-meta small { font-size: 12px; font-weight: 600; }
.ecp .ecp-progress-meta > span:first-child { display: block; }
.ecp .ecp-progress-meta > span:first-child small { display: block; }
.ecp .ecp-progress-pct { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 20px; color: var(--ecp-text); align-self: center; }
.ecp .ecp-progress-end { text-align: right; align-items: flex-end; }
.ecp .ecp-progress.is-compact { padding: 0; background: none; gap: 6px; }
.ecp .ecp-progress.is-compact .ecp-progress-bar { height: 8px; }
.ecp .ecp-progress.is-compact .ecp-progress-meta { font-size: 12.5px; align-items: center; }
.ecp .ecp-progress.is-compact .ecp-progress-meta > span { display: inline; }
.ecp .ecp-chip-full { background: var(--ecp-text); color: var(--ecp-bg); }

/* ---------- Range autofill + long lists of estimates ---------- */
.ecp .ecp-range { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--ecp-radius-sm); background: var(--ecp-tint-violet); }
.ecp .ecp-range[hidden], .ecp .ecp-guesses-head[hidden] { display: none; }
.ecp .ecp-range-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.ecp .ecp-range-f { flex: 1 1 120px; display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--ecp-muted); text-transform: uppercase; letter-spacing: .05em; }
.ecp .ecp-range-f input[type="number"] { height: 48px; font-size: 18px; background: linear-gradient(var(--ecp-bg), var(--ecp-bg)) padding-box, linear-gradient(var(--ecp-bg), var(--ecp-bg)) border-box; }
.ecp .ecp-range .ecp-btn, .ecp .ecp-range button.ecp-btn { flex: 1 1 auto; min-height: 48px; animation: none; box-shadow: none; }
.ecp button.ecp-btn.ecp-btn-ghost, .ecp a.ecp-btn.ecp-btn-ghost { color: var(--ecp-accent); }
.ecp .ecp-range .ecp-fine.is-bad { color: #c62828; font-weight: 700; }
.ecp .ecp-range .ecp-fine.is-ok { color: color-mix(in srgb, var(--ecp-green) 70%, var(--ecp-text)); font-weight: 700; }
.ecp .ecp-guesses-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: -4px; }
.ecp .ecp-ready { font-size: 13px; font-weight: 700; color: var(--ecp-muted); }
.ecp .ecp-ready.is-all { color: color-mix(in srgb, var(--ecp-green) 70%, var(--ecp-text)); }
.ecp .ecp-guesses.is-scroll { max-height: 388px; overflow-y: auto; padding: 4px 6px 4px 0; overscroll-behavior: contain; scrollbar-width: thin; }
.ecp .ecp-guesses.is-scroll .ecp-guess { animation: none; }
.ecp .ecp-guess-n { font-variant-numeric: tabular-nums; }
.ecp .ecp-guesses.is-scroll .ecp-guess-n { min-width: 28px; width: auto; padding: 0 7px; border-radius: 999px; font-size: 12px; }
.ecp .ecp-play .ecp-entry-foot .ecp-btn { flex: 1 1 100%; }

/* ---------- Packs: Double up & save ---------- */
.ecp .ecp-packs { display: flex; flex-direction: column; gap: 14px; }
.ecp .ecp-double { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 14px 16px; border-radius: var(--ecp-radius-sm); background: var(--ecp-tint-green); cursor: pointer; }
.ecp .ecp-double-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ecp .ecp-double-copy strong { font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ecp-text); }
.ecp .ecp-double-copy span { font-size: 14px; color: var(--ecp-muted); }
.ecp .ecp-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ecp .ecp-switch { flex: none; position: relative; width: 56px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--ecp-muted) 45%, var(--ecp-bg)); transition: background .25s ease; }
.ecp .ecp-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ecp .ecp-switch-input:checked + .ecp-switch { background: var(--ecp-green); }
.ecp .ecp-switch-input:checked + .ecp-switch::after { transform: translateX(24px); }
.ecp .ecp-switch-input:focus-visible + .ecp-switch { outline: 3px solid color-mix(in srgb, var(--ecp-accent) 45%, transparent); outline-offset: 3px; }
.ecp .ecp-bundle .ecp-b-out { display: none; font-size: 11.5px; font-weight: 700; color: var(--ecp-muted); margin-top: 4px; }
.ecp .ecp-bundle.is-out { opacity: .5; pointer-events: none; filter: grayscale(.6); animation: none; }
.ecp .ecp-bundle.is-out .ecp-b-out { display: block; }
.ecp .ecp-bundle.is-doubled .ecp-b-n::after { content: "x2"; font-family: var(--ecp-body); font-size: 12px; font-weight: 800; margin-left: 4px; vertical-align: super; -webkit-text-fill-color: var(--ecp-green); color: var(--ecp-green); }

/* ---------- Competition page (game product pages) ---------- */
.ecp.ecp-page { container: ecppage / inline-size; color: inherit; display: flex; flex-direction: column; gap: 34px; }
.ecp.ecp-page-solo { box-sizing: border-box; width: 100%; max-width: var(--ecp-page-max, 1240px); margin: 0 auto; padding: 28px 20px 56px; }
.ecp-page .ecp-notices .woocommerce-error, .ecp-page .ecp-notices .woocommerce-message, .ecp-page .ecp-notices .woocommerce-info { margin: 0 0 8px; }
.ecp-page .ecp-pg-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@container ecppage (min-width: 800px) {
	.ecp-page .ecp-pg-top { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 40px; }
	.ecp-page .ecp-pg-gallery { position: sticky; top: 24px; }
}

/* Gallery */
.ecp-page .ecp-pg-gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ecp-page .ecp-pg-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--ecp-radius-sm); overflow: hidden; background: var(--ecp-surface); }
.ecp-page .ecp-pg-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; }
.ecp-page .ecp-pg-slide.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.ecp-page .ecp-pg-nav, .ecp-page button.ecp-pg-nav {
	-webkit-appearance: none; appearance: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 44px; height: 44px; margin: 0; padding: 0 0 4px; border: 0; border-radius: 50%;
	background: rgba(20, 20, 26, .62); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
	display: grid; place-items: center; transition: background .2s ease, transform .2s ease;
}
.ecp-page .ecp-pg-nav:hover { background: rgba(20, 20, 26, .85); transform: translateY(-50%) scale(1.06); }
.ecp-page .ecp-pg-prev { left: 12px; }
.ecp-page .ecp-pg-next { right: 12px; }
.ecp-page .ecp-pg-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.ecp-page .ecp-pg-thumb, .ecp-page button.ecp-pg-thumb {
	-webkit-appearance: none; appearance: none; flex: 0 0 76px; height: 58px; margin: 0; padding: 0; border: 0;
	border-radius: calc(var(--ecp-radius-sm) / 2); overflow: hidden; background: var(--ecp-surface); cursor: pointer;
	opacity: .5; transition: opacity .2s ease, transform .2s ease;
}
.ecp-page .ecp-pg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ecp-page .ecp-pg-thumb:hover { opacity: 1; }
.ecp-page .ecp-pg-thumb.is-on { opacity: 1; transform: translateY(-2px); }

/* Info column: plain text sits on the site's own page background, so it takes the site's colour */
.ecp-page .ecp-pg-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ecp-page .ecp-pg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.ecp-page .ecp-title { color: inherit; font-size: clamp(30px, 5.2cqi, 46px); }
.ecp-page .ecp-pg-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 34px; line-height: 1.1; color: var(--ecp-accent); }
.ecp-page .ecp-pg-price del { opacity: .55; font-size: .78em; color: var(--ecp-accent); }
.ecp-page .ecp-pg-price ins { text-decoration: none; }
.ecp-page .ecp-pg-price small { font-family: var(--ecp-body); font-size: 14px; font-weight: 600; opacity: .75; color: inherit; }
.ecp-page .ecp-pg-price > small { color: currentColor; }
.ecp-page .ecp-pg-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 15px; }
.ecp-page .ecp-pg-status { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: calc(var(--ecp-radius-sm) / 2); font-size: 13px; font-weight: 700; background: var(--ecp-surface-2); color: var(--ecp-text); }
.ecp-page .ecp-pg-status.is-live { background: color-mix(in srgb, var(--ecp-green) 18%, #ffffff); color: #0b6b4a; }
.ecp-page .ecp-pg-status.is-live .ecp-pulse { background: #0b6b4a; box-shadow: 0 0 0 0 rgba(11, 107, 74, .5); }
.ecp-page .ecp-pg-status.is-ended { background: var(--ecp-grad); color: #fff; }

/* Countdown: one solid box per unit */
.ecp-page .ecp-pg-count .ecp-countdown { gap: 10px; }
.ecp-page .ecp-pg-count .ecp-cd-unit {
	max-width: none; padding: 16px 4px 12px; border-radius: var(--ecp-radius-sm);
	background: var(--ecp-grad); color: #fff; box-shadow: 0 6px 0 -2px color-mix(in srgb, var(--ecp-accent) 35%, #000);
}
.ecp-page .ecp-pg-count .ecp-cd-unit b { font-size: clamp(26px, 5cqi, 36px); }
.ecp-page .ecp-pg-count .ecp-cd-unit i { font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .95; margin-top: 4px; }
.ecp-page .ecp-pg-count .ecp-countdown.is-ended { color: inherit; }

.ecp-page .ecp-pg-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ecp-page .ecp-pg-facts li { display: flex; align-items: center; gap: 10px; margin: 0; }
.ecp-page .ecp-pg-facts .ecp-icon { color: var(--ecp-accent); }

/* Entry box */
.ecp-page .ecp-pg-entry { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: var(--ecp-radius-sm); background: var(--ecp-bg); color: var(--ecp-text); box-shadow: var(--ecp-shadow); }
.ecp-page .ecp-pg-skill { font-size: 14px; font-style: italic; color: var(--ecp-muted); }
.ecp-page .ecp-pg-entry .ecp-question { font-size: 18px; font-weight: 700; color: var(--ecp-text); }
.ecp-page .ecp-pg-entry .ecp-entry-foot .ecp-btn { min-height: 60px; font-size: 19px; }

/* Tabs */
.ecp-page .ecp-pg-tabs { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: var(--ecp-radius-sm); background: color-mix(in srgb, currentColor 4%, transparent); }
.ecp-page .ecp-pg-tablist { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ecp-page .ecp-pg-tab, .ecp-page button.ecp-pg-tab {
	-webkit-appearance: none; appearance: none; margin: 0; padding: 11px 18px; border: 0; cursor: pointer;
	border-radius: calc(var(--ecp-radius-sm) / 1.6); background: color-mix(in srgb, currentColor 8%, transparent); color: inherit;
	font-family: var(--ecp-body); font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
	transition: background .2s ease, color .2s ease;
}
.ecp-page .ecp-pg-tab:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.ecp-page .ecp-pg-tab.is-on { background: var(--ecp-grad); color: #fff; }
.ecp-page .ecp-pg-panel[hidden] { display: none; }
.ecp-page .ecp-pg-panel { font-size: 16px; line-height: 1.7; }
.ecp-page .ecp-pg-panel p { margin: 0 0 1em; }
.ecp-page .ecp-pg-panel img { height: auto; border-radius: calc(var(--ecp-radius-sm) / 2); }
.ecp-page .ecp-pg-rules { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
	.ecp .ecp-progress-bar span, .ecp-page .ecp-pg-slide { animation: none; transition: none; }
}

/* ---------- Theme-proofing: many themes restyle every <button> and <img> ---------- */
.ecp .ecp-step, .ecp button.ecp-step { background: var(--ecp-bg) !important; color: var(--ecp-text) !important; border: 0 !important; }
.ecp .ecp-step[data-step="1"], .ecp button.ecp-step[data-step="1"] { background: var(--ecp-grad) !important; color: #fff !important; }
.ecp-page .ecp-pg-tab, .ecp-page button.ecp-pg-tab { background: color-mix(in srgb, currentColor 8%, transparent) !important; color: inherit !important; border: 0 !important; }
.ecp-page .ecp-pg-tab.is-on, .ecp-page button.ecp-pg-tab.is-on { background: var(--ecp-grad) !important; color: #fff !important; }
.ecp-page .ecp-pg-nav, .ecp-page button.ecp-pg-nav { background: rgba(20, 20, 26, .62) !important; color: #fff !important; border: 0 !important; }
.ecp-page .ecp-pg-thumb, .ecp-page button.ecp-pg-thumb { background: var(--ecp-surface) !important; border: 0 !important; padding: 0 !important; }
.ecp-page .ecp-pg-slide { height: 100% !important; max-width: none !important; }
.ecp-page .ecp-pg-thumb img { height: 100% !important; }


/* =====================================================================
   1.7.2: links to the game page, competition image, prize videos
   ===================================================================== */

/* Cards click through to the game's own page */
.ecp .ecp-media-link { display: block; width: 100%; height: 100%; }
.ecp .ecp-title a, .ecp .ecp-title a:hover, .ecp .ecp-title a:focus, .ecp .ecp-title a:visited { color: inherit !important; text-decoration: none !important; }
.ecp .ecp-title a:hover { opacity: .82; }
.ecp .ecp-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: -8px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ecp-accent); }
.ecp .ecp-more .ecp-icon { transition: transform .2s ease; }
.ecp .ecp-more:hover .ecp-icon { transform: translateX(4px); }

/* Competition image: what the player is estimating */
.ecp .ecp-qimg { margin: 0; }
.ecp .ecp-qimg a { position: relative; display: block; border-radius: var(--ecp-radius-sm); overflow: hidden; background: var(--ecp-surface); cursor: zoom-in; }
.ecp .ecp-qimg-img { width: 100%; height: auto !important; max-height: 320px; object-fit: contain; display: block; margin: 0 auto; }
.ecp .ecp-qimg-zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 26, .62); color: #fff; }
.ecp .ecp-qimg-zoom .ecp-icon { width: 18px; height: 18px; }

/* Enlarged competition image */
.ecp-zoom { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 24px; background: rgba(12, 12, 16, .9); cursor: zoom-out; animation: ecp-in-soft .2s ease both; }
.ecp-zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.ecp-zoom button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0 !important; border-radius: 50%; background: rgba(255, 255, 255, .16) !important; color: #fff !important; font-size: 26px; line-height: 1; cursor: pointer; }

/* Prize videos in the gallery */
.ecp-page .ecp-pg-video { background: #0d0d12; }
.ecp-page .ecp-pg-video video, .ecp-page .ecp-pg-video iframe { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; display: block; }
.ecp-page .ecp-pg-poster { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.ecp-page .ecp-pg-play, .ecp-page button.ecp-pg-play {
	-webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0;
	border: 0 !important; background: rgba(12, 12, 16, .18) !important; cursor: pointer; display: grid; place-items: center;
}
.ecp-page .ecp-pg-playicon { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--ecp-grad); color: #fff; box-shadow: 0 14px 34px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.ecp-page .ecp-pg-playicon .ecp-icon { width: 34px; height: 34px; margin-left: 4px; }
.ecp-page .ecp-pg-play:hover .ecp-pg-playicon { transform: scale(1.08); }
.ecp-page .ecp-pg-thumb.is-video { position: relative; background: #0d0d12 !important; }
.ecp-page .ecp-pg-thumb.is-video .ecp-pg-playicon { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; box-shadow: none; }
.ecp-page .ecp-pg-thumb.is-video .ecp-pg-playicon .ecp-icon { width: 14px; height: 14px; margin-left: 2px; }
.ecp-page .ecp-pg-play[hidden], .ecp-page .ecp-pg-poster[hidden] { display: none !important; }

/* =====================================================================
   1.8: games list tiles (link to the game page; entry happens there)
   ===================================================================== */
.ecp .ecp-card { height: 100%; }
.ecp .ecp-card-media .ecp-chip { top: auto; bottom: 12px; left: 12px; }
.ecp .ecp-card-body { gap: 12px; }
.ecp .ecp-card-cash { margin: -4px 0 0; font-size: 15px; font-weight: 800; color: var(--ecp-accent); }
.ecp .ecp-card-note { margin: 0; font-size: 14px; font-weight: 600; color: var(--ecp-muted); text-align: center; }
.ecp .ecp-card-note b { color: var(--ecp-text); }
.ecp .ecp-card-price { margin-top: auto; text-align: center; font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 30px; line-height: 1.1; color: var(--ecp-accent); }
.ecp .ecp-card-price del { opacity: .55; font-size: .7em; margin-right: 6px; color: var(--ecp-accent); }
.ecp .ecp-card-price ins { text-decoration: none; }
.ecp .ecp-card-price small { font-family: var(--ecp-body); font-size: 13px; font-weight: 700; color: var(--ecp-muted); }
.ecp .ecp-card .ecp-btn-block { display: flex; width: 100%; min-height: 50px; font-size: 16px; }
.ecp .ecp-card .ecp-card-note + .ecp-btn-block { margin-top: auto; }
/* Compact progress: one bar with the percentage on it */
.ecp .ecp-progress.is-compact { position: relative; }
.ecp .ecp-progress.is-compact .ecp-progress-bar { height: 18px; }
.ecp .ecp-progress-label { position: absolute; left: 10px; top: 0; height: 18px; display: flex; align-items: center; font-size: 12px; font-weight: 800; color: var(--ecp-text); }

/* =====================================================================
   1.9: pick attempts, pay, then assign values. My Competitions list.
   No borders or outline rings: tinted backgrounds and shadows only.
   ===================================================================== */

/* "You have attempts waiting" on a game */
.ecp .ecp-pending { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; border-radius: var(--ecp-radius-sm); background: var(--ecp-tint-green); color: var(--ecp-text); }
.ecp .ecp-pending-n { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 36px; line-height: 1; font-variant-numeric: tabular-nums; }
.ecp .ecp-pending-copy { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ecp .ecp-pending-copy strong { font-size: 15px; font-weight: 800; }
.ecp .ecp-pending-copy span { font-size: 13.5px; color: var(--ecp-muted); }

/* Pick a number of attempts */
.ecp .ecp-buy { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ecp .ecp-buy-quick { display: grid; grid-template-columns: repeat(var(--ecp-picks, 5), minmax(0, 1fr)); gap: 8px; }
.ecp .ecp-quick, .ecp button.ecp-quick {
	-webkit-appearance: none; appearance: none; min-width: 0; height: 46px; margin: 0; padding: 0 4px;
	border: 0 !important; border-radius: var(--ecp-pill); cursor: pointer;
	background: var(--ecp-surface) !important; color: var(--ecp-text) !important;
	font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums;
	transition: transform .15s ease, background .2s ease, color .2s ease;
}
.ecp .ecp-quick:hover { background: var(--ecp-surface-2) !important; transform: translateY(-2px); }
.ecp .ecp-quick.is-on, .ecp button.ecp-quick.is-on { background: var(--ecp-grad) !important; color: #fff !important; box-shadow: 0 10px 20px -12px var(--ecp-glow); }
.ecp .ecp-buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.ecp .ecp-buy-row .ecp-stepper input[type="number"] { width: 86px; }
.ecp input[type="range"].ecp-slider {
	-webkit-appearance: none; appearance: none; flex: 1 1 180px; min-width: 0; width: auto; height: 12px; margin: 0; padding: 0;
	border: 0; border-radius: 999px; outline: none; cursor: pointer; box-shadow: none;
	background: linear-gradient(to right, var(--ecp-accent) var(--ecp-fill, 0%), var(--ecp-surface-2) var(--ecp-fill, 0%));
}
.ecp input[type="range"].ecp-slider::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: transparent; }
.ecp input[type="range"].ecp-slider::-moz-range-track { height: 12px; border-radius: 999px; background: transparent; }
.ecp input[type="range"].ecp-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--ecp-accent); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); }
.ecp input[type="range"].ecp-slider::-moz-range-thumb { width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ecp-accent); box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .45); }
.ecp input[type="range"].ecp-slider:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
.ecp .ecp-buy-sum { font-size: 13px; font-weight: 700; color: var(--ecp-muted); }
.ecp .ecp-buy .ecp-entry-foot .ecp-btn { min-height: 60px; font-size: 19px; }

/* ---------- Assign your values: one game ---------- */
.ecp.ecp-assign {
	container: ecpassign / inline-size;
	display: flex; flex-direction: column; gap: 22px;
	padding: 22px; margin: 0 0 28px; border-radius: var(--ecp-radius);
	background: var(--ecp-bg); color: var(--ecp-text); box-shadow: var(--ecp-shadow);
}
.ecp-assign .ecp-notices .woocommerce-error, .ecp-assign .ecp-notices .woocommerce-message, .ecp-assign .ecp-notices .woocommerce-info { margin: 0 0 8px; }
.ecp .ecp-back, .ecp a.ecp-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--ecp-accent); }
.ecp .ecp-back .ecp-icon { transform: rotate(180deg); transition: transform .2s ease; }
.ecp .ecp-back:hover .ecp-icon { transform: rotate(180deg) translateX(4px); }
.ecp-assign .ecp-as-head { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.ecp-assign .ecp-as-thumb { flex: none; display: block; width: 88px; height: 88px; border-radius: var(--ecp-radius-sm); overflow: hidden; background: var(--ecp-surface); }
.ecp-assign .ecp-as-thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.ecp-assign .ecp-as-id { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ecp-assign .ecp-title { font-size: clamp(22px, 4.4cqi, 34px); }
.ecp-assign .ecp-as-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13.5px; font-weight: 600; color: var(--ecp-muted); }
.ecp-assign .ecp-as-count { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 124px; padding: 14px 20px; border-radius: var(--ecp-radius-sm); background: var(--ecp-grad); color: #fff; text-align: center; }
.ecp-assign .ecp-as-count b { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 38px; line-height: 1; font-variant-numeric: tabular-nums; }
.ecp-assign .ecp-as-count span { font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; opacity: .95; }
.ecp-assign .ecp-as-count.is-done { background: var(--ecp-surface); color: var(--ecp-text); }
.ecp-assign .ecp-as-count.is-done span { color: var(--ecp-muted); opacity: 1; }
.ecp-assign .ecp-as-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.ecp-assign .ecp-as-q { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ecp-assign .ecp-as-q .ecp-question { font-size: 18px; font-weight: 700; color: var(--ecp-text); }
.ecp-assign .ecp-as-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@container ecpassign (min-width: 860px) {
	.ecp-assign .ecp-as-body.has-img { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 30px; }
	.ecp-assign .ecp-as-body.has-img .ecp-as-q { position: sticky; top: 24px; }
}
/* The boxes: as many columns as fit, scrolling inside the list once it gets long */
.ecp-assign .ecp-guesses { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.ecp-assign .ecp-guesses.is-scroll { max-height: 524px; }
.ecp-assign .ecp-play .ecp-entry-foot .ecp-btn { min-height: 60px; font-size: 19px; }
.ecp .ecp-as-allin { display: flex; flex-direction: column; gap: 2px; background: var(--ecp-tint-green); }
.ecp .ecp-as-allin strong { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 22px; color: var(--ecp-text); }
.ecp .ecp-as-allin span { color: var(--ecp-muted); }
.ecp .ecp-yours-list.is-all { max-height: 212px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
.ecp-assign .ecp-as-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.ecp-assign .ecp-as-foot .ecp-fine a { font-weight: 700; }
.csc-thankyou-games .ecp-assign { max-width: none; }
@container ecpassign (max-width: 520px) {
	.ecp-assign .ecp-as-thumb { width: 64px; height: 64px; }
	.ecp-assign .ecp-as-count { flex: 1 1 100%; flex-direction: row; gap: 10px; padding: 12px 16px; }
	.ecp-assign .ecp-as-count b { font-size: 30px; }
}
@media (max-width: 560px) {
	.ecp.ecp-assign { padding: 16px; }
}

/* ---------- My Competitions: summary and rows ---------- */
.ecp .ecp-mine-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.ecp .ecp-mine-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 18px; border-radius: var(--ecp-radius-sm); background: var(--ecp-surface); color: var(--ecp-text); }
.ecp .ecp-mine-stat b { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.ecp .ecp-mine-stat span { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ecp-muted); }
.ecp .ecp-mine-stat.is-todo { background: var(--ecp-grad); color: #fff; box-shadow: 0 16px 30px -20px var(--ecp-glow); }
.ecp .ecp-mine-stat.is-todo span { color: rgba(255, 255, 255, .92); }
.ecp .ecp-rows { display: flex; flex-direction: column; gap: 12px; }
.ecp .ecp-row, .ecp a.ecp-row {
	display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px;
	border-radius: var(--ecp-radius-sm); background: var(--ecp-bg);
	color: var(--ecp-text) !important; text-decoration: none !important;
	box-shadow: 0 14px 30px -22px rgba(20, 20, 40, .45), 0 2px 10px -4px rgba(20, 20, 40, .14);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}
.ecp .ecp-row:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -22px var(--ecp-glow), 0 4px 12px -4px rgba(20, 20, 40, .16); }
.ecp .ecp-row-thumb { flex: none; display: grid; place-items: center; width: 66px; height: 66px; border-radius: calc(var(--ecp-radius-sm) * .7); overflow: hidden; background: var(--ecp-surface); color: var(--ecp-muted); }
.ecp .ecp-row-thumb img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.ecp .ecp-row-thumb .ecp-icon { width: 26px; height: 26px; }
.ecp .ecp-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ecp .ecp-row-title { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 19px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ecp .ecp-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; font-weight: 600; color: var(--ecp-muted); }
.ecp .ecp-row-state { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: var(--ecp-surface-2); color: var(--ecp-text); }
.ecp .ecp-row-state .ecp-icon { width: 12px; height: 12px; }
.ecp .ecp-row-state.is-live { background: color-mix(in srgb, var(--ecp-green) 18%, #ffffff); color: #0b6b4a; }
.ecp .ecp-row-state.is-ended { background: var(--ecp-text); color: var(--ecp-bg); }
.ecp .ecp-row-state.is-won { background: var(--ecp-tint-amber); color: color-mix(in srgb, var(--ecp-gold) 55%, var(--ecp-text)); }
.ecp .ecp-row-n { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1; }
.ecp .ecp-row-n b { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 26px; font-variant-numeric: tabular-nums; }
.ecp .ecp-row-n i { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ecp-muted); }
.ecp .ecp-row-go { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ecp-accent); }
.ecp .ecp-row .ecp-btn-sm { animation: none; }
.ecp .ecp-row:hover .ecp-row-go .ecp-icon { transform: translateX(4px); }
.ecp .ecp-row-go .ecp-icon { transition: transform .2s ease; }
@container ecpmine (max-width: 600px) {
	.ecp .ecp-mine-sum { gap: 8px; }
	.ecp .ecp-mine-stat { padding: 12px; }
	.ecp .ecp-mine-stat b { font-size: 24px; }
	.ecp .ecp-mine-stat span { font-size: 10px; letter-spacing: .03em; }
	.ecp .ecp-row { flex-wrap: wrap; padding: 12px; }
	.ecp .ecp-row-thumb { width: 54px; height: 54px; }
	.ecp .ecp-row-main { flex: 1 1 0; }
	.ecp .ecp-row-title { white-space: normal; }
	.ecp .ecp-row .ecp-btn-sm { flex: 1 1 100%; }
	.ecp .ecp-row-go { flex: 1 1 100%; justify-content: flex-end; }
}

/* The confirmation page scrolls to the assign box: leave room for a fixed site header */
.ecp.ecp-assign { scroll-margin-top: var(--ecp-scroll-top, 96px); }

/* One-line "you have N values in this game" on the game itself */
.ecp .ecp-yours.ecp-yours-line { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.ecp .ecp-yours-line .ecp-label { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: var(--ecp-text); }

/* =====================================================================
   1.9.1: after payment, straight to the enter-values page
   ===================================================================== */
@keyframes ecp-turn { to { transform: rotate(360deg); } }
.ecp.ecp-go { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 20px 22px; margin: 0 0 24px; border-radius: var(--ecp-radius); background: var(--ecp-bg); color: var(--ecp-text); box-shadow: var(--ecp-shadow); scroll-margin-top: var(--ecp-scroll-top, 96px); }
.ecp-go .ecp-go-spin { flex: none; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 0deg, var(--ecp-accent), color-mix(in srgb, var(--ecp-accent) 8%, transparent)); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: ecp-turn .9s linear infinite !important; }
.ecp-go.is-idle .ecp-go-spin { display: none; }
.ecp-go .ecp-go-copy { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ecp-go .ecp-go-copy strong { font-family: var(--ecp-head); font-weight: var(--ecp-hw); font-size: 22px; line-height: 1.2; }
.ecp-go .ecp-go-copy span { font-size: 15px; color: var(--ecp-muted); }
.ecp-go .ecp-btn[hidden] { display: none; }
