/* =====================================================================
 * Homepage hero cards v3 (theme 1.75.0, 2026-11-18) — owner-approved
 * mockup https://claude.ai/artifact/BBQSxtkp4t2bpfkks2RtCm (Predict +
 * Leaderboard; the Latest post card is unchanged).
 * Scoped to the hero slider only: the same [proace_contest] card keeps
 * its own look in posts, /predictions/ and the sidebar.
 * ================================================================== */

.cricket-hero-slider {
	--hc-gold: #ffb020;
	--hc-gold-soft: #ffd66b;
	--hc-ink: #071427;
	--hc-text: #eaf4ff;
	--hc-muted: #9fb4d0;
	--hc-line: rgba( 255, 255, 255, 0.1 );
	--hc-tile: rgba( 255, 255, 255, 0.05 );
	--hc-blue: #3a86e0;
	--hc-orange: #ff8a5c;
	--hc-green: #6ff0a8;
	--hc-card: linear-gradient( 180deg, #102f55 0%, #0b1f3a 100% );
}
html[data-theme="light"] .cricket-hero-slider {
	--hc-text: #13213b;
	--hc-muted: #55657f;
	--hc-line: #e3e9f2;
	--hc-tile: #f4f7fc;
	--hc-green: #12804a;
	--hc-card: #ffffff;
}

/* ---------- Predict card ---------- */
.cricket-hero-slider .cricket-desk .proace-contest__surface {
	padding: 20px !important;
	border-radius: 22px !important;
	background: var( --hc-card ) !important;
	border: 1px solid rgba( 255, 176, 32, 0.35 ) !important;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.35 ) !important;
}
.cricket-hero-slider .cricket-desk .proace-contest__surface::after {
	display: none !important;
}
.cricket-hero-slider .cricket-desk .proace-contest__ref {
	display: none;
}
.cricket-hero-slider .cricket-desk .proace-contest__teams {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 10px;
	padding: 8px 0 4px;
}
.cricket-hero-slider .cricket-desk .proace-contest__team {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}
.cricket-hero-slider .cricket-desk .proace-contest__crest {
	width: 72px !important;
	height: 72px !important;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 3px solid #ffffff;
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.35 );
}
.cricket-hero-slider .cricket-desk .proace-contest__team-name {
	font-family: 'Outfit', sans-serif;
	font-size: 17px !important;
	font-weight: 800;
	color: var( --hc-text ) !important;
	text-align: center;
}
.cricket-hero-slider .cricket-desk .proace-contest__vs {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient( 180deg, var( --hc-gold-soft ), var( --hc-gold ) ) !important;
	color: var( --hc-ink ) !important;
	font: italic 900 18px 'Barlow Condensed', 'Outfit', sans-serif;
	box-shadow: 0 6px 18px rgba( 255, 176, 32, 0.35 );
}
.cricket-hero-slider .cricket-desk .proace-contest__info {
	justify-content: center;
	gap: 8px 14px;
	color: var( --hc-muted );
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 12px;
}
.cricket-hero-slider .cricket-desk .proace-contest__lock {
	display: inline-flex !important; /* the compact card hides it; the hero shows when picks lock */
	align-items: center;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 10px;
	background: rgba( 255, 176, 32, 0.12 );
	border: 1px solid rgba( 255, 176, 32, 0.45 );
	color: var( --hc-gold-soft );
}
html[data-theme="light"] .cricket-hero-slider .cricket-desk .proace-contest__lock {
	color: #8a5a00 !important;
	background: #fff4dc;
}

/* Match winner | Toss winner switch */
.cricket-hero-slider .cricket-desk .proace-contest__switch {
	min-height: 52px;
	padding: 5px;
	border-radius: 14px;
	background: rgba( 0, 0, 0, 0.25 );
}
html[data-theme="light"] .cricket-hero-slider .cricket-desk .proace-contest__switch {
	background: #eef2f8;
}
.cricket-hero-slider .cricket-desk .proace-contest__ink {
	border-radius: 10px;
	background: linear-gradient( 180deg, var( --hc-gold-soft ), var( --hc-gold ) ) !important;
	box-shadow: 0 6px 16px rgba( 255, 176, 32, 0.3 );
}
.cricket-hero-slider .cricket-desk .proace-contest__tab {
	min-height: 44px;
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: 14px;
	color: var( --hc-text );
}
.cricket-hero-slider .cricket-desk .proace-contest__tab.is-active,
.cricket-hero-slider .cricket-desk .proace-contest__tab.is-active .proace-contest__tab-tag {
	color: var( --hc-ink ) !important;
}

/* Inside a question: the countdown leads, the duplicate labels go. */
.cricket-hero-slider .cricket-desk .proace-prediction__tourney,
.cricket-hero-slider .cricket-desk .proace-prediction__badge,
.cricket-hero-slider .cricket-desk .proace-prediction__split-bar,
.cricket-hero-slider .cricket-desk .proace-prediction__vs-mid,
.cricket-hero-slider .cricket-desk .proace-prediction__option--vs .proace-prediction__crest {
	display: none !important;
}
.cricket-hero-slider .cricket-desk .proace-prediction__top {
	justify-content: flex-end;
	margin-bottom: 4px;
}
.cricket-hero-slider .cricket-desk .proace-prediction__timer {
	padding: 5px 10px;
	border-radius: 10px;
	background: rgba( 58, 134, 224, 0.14 );
	border: 1px solid rgba( 58, 134, 224, 0.4 );
	color: #9fdcff;
	font: 700 12px 'JetBrains Mono', ui-monospace, monospace;
}
html[data-theme="light"] .cricket-hero-slider .cricket-desk .proace-prediction__timer {
	color: #1a5aa8 !important;
	background: #e8f1fc;
}
.cricket-hero-slider .cricket-desk .proace-prediction__question {
	font-family: 'Outfit', sans-serif;
	font-size: 16px;
	font-weight: 800;
	color: var( --hc-text );
	margin-bottom: 10px;
}
.cricket-hero-slider .cricket-desk .proace-prediction__vs-row {
	display: grid !important;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 10px;
}
.cricket-hero-slider .cricket-desk .proace-prediction__option--vs {
	position: relative;
	overflow: hidden;
	min-height: 76px;
	padding: 0 14px 6px !important;
	display: flex !important;
	flex-direction: column;
	align-items: flex-start !important;
	justify-content: center;
	gap: 4px;
	border-radius: 14px !important;
	border: 1.5px solid rgba( 255, 255, 255, 0.18 ) !important;
	background: var( --hc-tile ) !important;
	color: var( --hc-text ) !important;
	text-align: left;
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
html[data-theme="light"] .cricket-hero-slider .cricket-desk .proace-prediction__option--vs {
	border-color: #d9e2ee !important;
}
.cricket-hero-slider .cricket-desk .proace-prediction__option--vs::after { /* crowd split */
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 5px;
	width: max( 3%, var( --proace-pct, 0% ) );
	background: var( --hc-blue );
	transition: width 0.6s cubic-bezier( 0.16, 1, 0.3, 1 );
}
.cricket-hero-slider .cricket-desk .proace-prediction__vs-row > .proace-prediction__option--vs:last-child::after {
	background: var( --hc-orange );
}
.cricket-hero-slider .cricket-desk .proace-prediction__option--vs:hover,
.cricket-hero-slider .cricket-desk .proace-prediction__option--vs:focus-visible {
	transform: translateY( -2px );
	border-color: var( --hc-gold ) !important;
}
.cricket-hero-slider .cricket-desk .proace-prediction__vs-name {
	font-family: 'Outfit', sans-serif;
	font-size: 17px;
	font-weight: 800;
}
.cricket-hero-slider .cricket-desk .proace-prediction__vs-pct {
	font: 700 12px 'JetBrains Mono', ui-monospace, monospace;
	color: var( --hc-muted );
}
.cricket-hero-slider .cricket-desk .proace-prediction__vs-pct::after {
	content: " of picks";
}
.cricket-hero-slider .cricket-desk .proace-prediction__option--mine {
	border-color: var( --hc-gold ) !important;
	background: rgba( 255, 176, 32, 0.14 ) !important;
	box-shadow: 0 0 0 3px rgba( 255, 176, 32, 0.2 );
}
.cricket-hero-slider .cricket-desk .proace-prediction__option--correct {
	border-color: #2fd17a !important;
	background: rgba( 47, 209, 122, 0.14 ) !important;
}
.cricket-hero-slider .cricket-desk .proace-prediction__option--wrong {
	opacity: 0.6;
}
.cricket-hero-slider .cricket-desk .proace-prediction__options--extras {
	margin-top: 10px;
	gap: 8px;
}
.cricket-hero-slider .cricket-desk .proace-prediction__options--extras .proace-prediction__option {
	min-height: 34px;
	padding: 0 12px !important;
	border-radius: 999px !important;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 13px;
}

/* ---------- Stat tiles under the Predict card ---------- */
.cricket-hero-slider .cricket-desk__tiles {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	gap: 8px;
}
.cricket-hero-slider .cricket-desk__tile {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 10px;
	padding: 10px 12px !important;
	border-radius: 14px !important;
	min-width: 0;
}
.cricket-hero-slider .cricket-desk__tile-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.cricket-hero-slider .cricket-desk__tile-value {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: normal;
	line-height: 1.25;
}
.cricket-hero-slider .cricket-desk__tile-icon {
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cricket-desk__tile-icon--gold { background: rgba( 255, 176, 32, 0.16 ); color: #ffd66b; }
.cricket-desk__tile-icon--green { background: rgba( 47, 209, 122, 0.16 ); color: #6ff0a8; }
.cricket-desk__tile-icon--blue { background: rgba( 58, 134, 224, 0.22 ); color: #9fdcff; }
html[data-theme="light"] .cricket-desk__tile-icon--gold { color: #a06800; }
html[data-theme="light"] .cricket-desk__tile-icon--green { color: #12804a; }
html[data-theme="light"] .cricket-desk__tile-icon--blue { color: #1a5aa8; }
.cricket-hero-slider .cricket-desk__tile--link {
	background: rgba( 58, 134, 224, 0.14 ) !important;
	border-color: rgba( 58, 134, 224, 0.4 ) !important;
}

/* ---------- Leaderboard card ---------- */
.cricket-hero-board--v3 .cricket-hero-board__switch {
	display: flex;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: rgba( 0, 0, 0, 0.25 );
}
html[data-theme="light"] .cricket-hero-board--v3 .cricket-hero-board__switch {
	background: #eef2f8;
}
.cricket-hero-board--v3 .cricket-hero-board__switch-btn {
	min-height: 34px;
	padding: 0 12px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var( --hc-muted );
	font: 700 11px 'JetBrains Mono', ui-monospace, monospace;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}
.cricket-hero-board--v3 .cricket-hero-board__switch-btn.is-active {
	background: var( --hc-gold );
	color: var( --hc-ink );
}
.cricket-hero-board--v3 .cricket-hero-board__switch-btn:focus-visible {
	outline: 2px solid var( --hc-gold-soft );
	outline-offset: 2px;
}
/* Medal rings */
.cricket-hero-board--v3 .cricket-hero-board__step--1 .cricket-hero-board__step-avatar .cricket-hero-board__avatar {
	box-shadow: 0 0 0 3px #ffb020, 0 0 0 7px rgba( 255, 176, 32, 0.22 ), 0 0 30px rgba( 255, 176, 32, 0.35 );
}
.cricket-hero-board--v3 .cricket-hero-board__step--2 .cricket-hero-board__step-avatar .cricket-hero-board__avatar {
	box-shadow: 0 0 0 3px #c9d3df, 0 0 0 6px rgba( 201, 211, 223, 0.18 );
}
.cricket-hero-board--v3 .cricket-hero-board__step--3 .cricket-hero-board__step-avatar .cricket-hero-board__avatar {
	box-shadow: 0 0 0 3px #d08a4e, 0 0 0 6px rgba( 208, 138, 78, 0.2 );
}
.cricket-hero-board--v3 .cricket-hero-board__step--1 .cricket-hero-board__step-points {
	color: var( --hc-gold-soft );
}
html[data-theme="light"] .cricket-hero-board--v3 .cricket-hero-board__step--1 .cricket-hero-board__step-points {
	color: #a06800;
}
.cricket-hero-board--v3 .cricket-hero-board__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	margin-top: 2px;
}
.cricket-hero-board--v3 .cricket-hero-board__chip {
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.08 );
	color: var( --hc-muted );
	font: 700 10.5px 'JetBrains Mono', ui-monospace, monospace;
	white-space: nowrap;
}
html[data-theme="light"] .cricket-hero-board--v3 .cricket-hero-board__chip {
	background: #eef2f8;
}
.cricket-hero-board--v3 .cricket-hero-board__chip--streak {
	background: rgba( 255, 138, 92, 0.16 );
	color: #ffb39a;
}
html[data-theme="light"] .cricket-hero-board--v3 .cricket-hero-board__chip--streak {
	color: #b4451c;
	background: #ffeee7;
}
.cricket-hero-board--v3 .cricket-hero-board__step--1 .cricket-hero-board__block {
	background: linear-gradient( 180deg, rgba( 255, 176, 32, 0.45 ), rgba( 255, 176, 32, 0.1 ) );
}
.cricket-hero-board--v3 .cricket-hero-board__step--2 .cricket-hero-board__block {
	background: linear-gradient( 180deg, rgba( 201, 211, 223, 0.35 ), rgba( 201, 211, 223, 0.08 ) );
}
.cricket-hero-board--v3 .cricket-hero-board__step--3 .cricket-hero-board__block {
	background: linear-gradient( 180deg, rgba( 208, 138, 78, 0.4 ), rgba( 208, 138, 78, 0.08 ) );
}
/* Rows: accuracy bar between the name and the points */
.cricket-hero-board--v3 .cricket-hero-board__row {
	display: flex;
	align-items: center;
	gap: 12px;
}
.cricket-hero-board--v3 .cricket-hero-board__who {
	flex: 1 1 auto;
	min-width: 0;
}
.cricket-hero-board--v3 .cricket-hero-board__acc {
	flex: 0 0 64px;
	height: 6px;
	border-radius: 3px;
	background: rgba( 255, 255, 255, 0.1 );
	overflow: hidden;
}
html[data-theme="light"] .cricket-hero-board--v3 .cricket-hero-board__acc {
	background: #e3e9f2;
}
.cricket-hero-board--v3 .cricket-hero-board__acc > span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var( --hc-blue );
}
/* Nudge for anyone not on the board */
.cricket-hero-board--v3 .cricket-hero-board__nudge {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba( 58, 134, 224, 0.12 );
	border: 1px solid rgba( 58, 134, 224, 0.4 );
	color: var( --hc-text );
	font: 700 13px 'Plus Jakarta Sans', system-ui, sans-serif;
}
html[data-theme="light"] .cricket-hero-board--v3 .cricket-hero-board__nudge {
	background: #e8f1fc;
	border-color: #bcd4f2;
}
.cricket-hero-board--v3 .cricket-hero-board__nudge > span {
	flex: 1 1 auto;
}
.cricket-hero-board--v3 .cricket-hero-board__nudge-btn,
.cricket-hero-board--v3 .cricket-hero-board__nudge-btn:visited {
	flex: 0 0 auto;
	padding: 10px 14px;
	border-radius: 10px;
	background: var( --hc-gold );
	color: var( --hc-ink ) !important;
	font: 800 13px 'Outfit', sans-serif;
	text-decoration: none;
	white-space: nowrap;
}
.cricket-hero-board--v3 .cricket-hero-board__nudge-btn:hover,
.cricket-hero-board--v3 .cricket-hero-board__nudge-btn:focus-visible {
	background: var( --hc-gold-soft );
}

/* ---------- Phones ---------- */
@media ( max-width: 600px ) {
	.cricket-hero-slider .cricket-desk .proace-contest__surface {
		padding: 16px !important;
	}
	.cricket-hero-slider .cricket-desk .proace-contest__crest {
		width: 60px !important;
		height: 60px !important;
	}
	.cricket-hero-slider .cricket-desk .proace-contest__team-name,
	.cricket-hero-slider .cricket-desk .proace-prediction__vs-name {
		font-size: 15px !important;
	}
	.cricket-hero-slider .cricket-desk .proace-prediction__option--vs {
		min-height: 68px;
	}
	.cricket-hero-slider .cricket-desk__tiles {
		gap: 6px;
	}
	.cricket-hero-slider .cricket-desk__tile {
		padding: 9px 10px !important;
	}
	.cricket-hero-slider .cricket-desk__tile-icon {
		display: none;
	}
	.cricket-hero-board--v3 .cricket-hero-board__acc {
		flex-basis: 44px;
	}
	.cricket-hero-board--v3 .cricket-hero-board__nudge {
		flex-wrap: wrap;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.cricket-hero-slider .cricket-desk .proace-prediction__option--vs,
	.cricket-hero-slider .cricket-desk .proace-prediction__option--vs::after {
		transition: none;
	}
}

/* Light mode: podium names, "pts" and the foot line were near-white on white. */
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__step-name,
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__step-points,
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__points {
	color: #13213b !important;
}
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__step-points small,
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__points small,
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__count,
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__stat {
	color: #55657f !important;
}
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__block span {
	color: #8a5a00 !important;
}
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__step--2 .cricket-hero-board__block span,
html[data-theme="light"] .cricket-hero-board .cricket-hero-board__step--3 .cricket-hero-board__block span {
	color: #55657f !important;
}
