/* =========================================================================
   Triple zero roulette (/triple-zero-roulette/). Loaded after learn.css,
   wheels.css and french.css (which holds the shared cost ladder, the
   real-money call to action, the hero pick and the download cards).
   Lines: brass = single zero, slate = double zero, copper = triple zero.
   ========================================================================= */

.tz {
	--tz-eu: #B8892E;
	--tz-us: #5B616B;
	--tz-tz: #D2622A;
}

/* Hero table has three columns of numbers */
.rw-home .tz-verdict .wv-verdict__table td {
	white-space: nowrap;
}

/* ---------- Three wheels ---------- */

.tz-wheels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-top: 28px;
}

.tz-wheels__item {
	margin: 0;
	padding: 22px 22px 20px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 18px;
	box-shadow: var(--rwx-panel-shadow, 0 24px 48px -32px rgba(14, 16, 19, .3));
}

.tz-wheels__item.is-worst {
	border-color: #E8B394;
	box-shadow: inset 0 3px 0 var(--tz-tz), var(--rwx-panel-shadow, 0 24px 48px -32px rgba(14, 16, 19, .3));
}

.tz-wheels__item figcaption {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 16px;
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.45;
}

.tz-wheels__k {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 17px;
	font-weight: 800;
}

.is-worst .tz-wheels__k {
	color: #A84E1F;
}

.tz-wheel {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
}

.tz-wheel__rim {
	fill: #0E1013;
}

.tz-wheel__hub {
	fill: #15181D;
}

.tz-wheel__ring {
	fill: none;
	stroke: #D4A84B;
	stroke-width: 1.5;
	opacity: .7;
}

.tz-p path {
	stroke: #0E1013;
	stroke-width: 1.2;
}

.tz-p--red path {
	fill: #C8102E;
}

.tz-p--black path {
	fill: #22262D;
}

.tz-p--zero path {
	fill: #1E7A52;
	stroke: #E9CB82;
	stroke-width: 2.4;
}

.tz-p text {
	fill: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 15px;
	font-weight: 800;
	text-anchor: middle;
	dominant-baseline: central;
}

.tz-p text.tz-p__sm {
	font-size: 11.5px;
	letter-spacing: -.02em;
}

.tz-wheel__big {
	fill: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 76px;
	font-weight: 800;
	text-anchor: middle;
	dominant-baseline: central;
}

.tz-wheel__small {
	fill: #D4A84B;
	font-family: var(--rw-body);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .12em;
	text-anchor: middle;
	text-transform: uppercase;
}

/* ---------- Chance of being ahead ---------- */

.tz-ahead {
	margin-top: 28px;
	padding: 24px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 20px;
	box-shadow: var(--rwx-panel-shadow, 0 24px 48px -32px rgba(14, 16, 19, .3));
}

.tz-ahead__bar {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 16px 28px;
	align-items: center;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rw-line);
}

.tz-ahead__label {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 120px;
}

.tz-ahead__label strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.tz-ahead__bets {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tz-range {
	--tz-fill: 9.1%;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.tz-range::-webkit-slider-runnable-track {
	height: 8px;
	background: linear-gradient(90deg, var(--rw-ink) var(--tz-fill), var(--rwx-hair, #ECEDE9) var(--tz-fill));
	border-radius: 999px;
}

.tz-range::-moz-range-track {
	height: 8px;
	background: var(--rwx-hair, #ECEDE9);
	border-radius: 999px;
}

.tz-range::-moz-range-progress {
	height: 8px;
	background: var(--rw-ink);
	border-radius: 999px;
}

.tz-range::-webkit-slider-thumb {
	width: 26px;
	height: 26px;
	margin-top: -9px;
	background: var(--rw-gold);
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(14, 16, 19, .35);
	-webkit-appearance: none;
	appearance: none;
}

.tz-range::-moz-range-thumb {
	width: 22px;
	height: 22px;
	background: var(--rw-gold);
	border: 3px solid #FFFFFF;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(14, 16, 19, .35);
}

.tz-range:focus-visible {
	outline: 3px solid var(--rw-gold);
	outline-offset: 4px;
	border-radius: 6px;
}

.tz-ahead__main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 28px;
	align-items: center;
	margin-top: 22px;
}

.tz-chart {
	margin: 0;
}

.tz-chart svg {
	display: block;
	width: 100%;
	height: auto;
}

.tz-chart figcaption {
	margin-top: 8px;
	color: var(--rw-muted);
	font-size: 13px;
	font-weight: 600;
}

.tz-chart__grid {
	stroke: var(--rwx-hair, #ECEDE9);
	stroke-width: 1;
}

.tz-chart__ytick,
.tz-chart__xtick {
	fill: var(--rw-muted);
	font-family: var(--rw-body);
	font-size: 13px;
	font-weight: 700;
}

.tz-chart__ytick {
	text-anchor: end;
	dominant-baseline: central;
}

.tz-chart__xtick {
	text-anchor: middle;
}

.tz-chart__line {
	fill: none;
	stroke-width: 3.5;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.tz-chart__line--eu,
.tz-chart__dot--eu {
	stroke: var(--tz-eu);
}

.tz-chart__line--us,
.tz-chart__dot--us {
	stroke: var(--tz-us);
}

.tz-chart__line--tz,
.tz-chart__dot--tz {
	stroke: var(--tz-tz);
}

.tz-chart__marker {
	stroke: var(--rw-ink);
	stroke-width: 1.5;
	stroke-dasharray: 4 4;
}

.tz-chart__dot {
	fill: #FFFFFF;
	stroke-width: 3.5;
}

.tz-ahead__out {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tz-res {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px 12px 18px;
	background: var(--rw-paper-2);
	border: 1px solid var(--rw-line);
	border-radius: 12px;
	box-shadow: inset 4px 0 0 var(--tz-c, var(--rw-line));
}

.tz-res--eu {
	--tz-c: var(--tz-eu);
}

.tz-res--us {
	--tz-c: var(--tz-us);
}

.tz-res--tz {
	--tz-c: var(--tz-tz);
}

.tz-res__k {
	color: var(--rw-muted);
	font-size: 12.5px;
	font-weight: 800;
}

.tz-res strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.tz-res > span:last-child {
	color: var(--rw-text-2);
	font-size: 13px;
	line-height: 1.4;
}

.tz-res b {
	color: var(--rw-ink);
	font-weight: 800;
	white-space: nowrap;
}

.rw-home .tz-ahead__note {
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.5;
}

/* ---------- Las Vegas facts ---------- */

.tz-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 28px;
}

.tz-fact {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: var(--rw-paper-2);
	border: 1px solid var(--rw-line);
	border-radius: 16px;
}

.tz-fact strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
}

.tz-fact span {
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.5;
}

.tz-fact--good {
	background: var(--rw-gold-soft);
	border-color: var(--rw-gold);
}

.tz-fact--good strong {
	color: var(--rw-gold-ink);
}

/* Two download cards */
.tz-dl {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tz-dl .fr-dl__img {
	aspect-ratio: 3 / 2;
}

.tz-dl .fr-dl__img img {
	object-fit: contain;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
	.tz-wheels {
		grid-template-columns: minmax(0, 1fr);
		max-width: 460px;
		margin-left: auto;
		margin-right: auto;
	}

	.tz-ahead__main {
		grid-template-columns: minmax(0, 1fr);
	}

	.tz-ahead__out {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.rw-home .tz-ahead__note {
		grid-column: 1 / -1;
	}

	.tz-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.tz-ahead__bar {
		grid-template-columns: minmax(0, 1fr);
	}

	.tz-ahead__out {
		grid-template-columns: minmax(0, 1fr);
	}

	.tz-dl {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.tz-ahead {
		padding: 16px;
		border-radius: 16px;
	}

	.tz-facts {
		grid-template-columns: minmax(0, 1fr);
	}

	.tz-chart__ytick,
	.tz-chart__xtick {
		font-size: 24px;
	}

	.tz-chart__line {
		stroke-width: 6;
	}

	.tz-chart__dot {
		r: 10px;
		stroke-width: 5;
	}

	.tz-wheels__item .tz-wheel {
		max-width: 280px;
	}
}
