/* =========================================================================
   Bitcoin roulette page (/bitcoin-roulette/). Loaded after rw.css and
   live.css, whose finder, card, glance and tip components it reuses.
   ========================================================================= */

/* ---------- Payout planner ---------- */

.cx-scale,
.cx-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1.3fr) 84px;
	gap: 18px;
	align-items: center;
}

.cx-scale {
	padding: 10px 24px 8px;
	color: var(--rw-muted);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.cx-scale__axis {
	position: relative;
	height: 14px;
}

.cx-scale__axis em {
	position: absolute;
	top: 0;
	color: var(--rw-muted);
	font-size: 11px;
	font-style: normal;
	letter-spacing: 0;
	text-transform: none;
	white-space: nowrap;
	transform: translateX(-50%);
}

.cx-scale__axis em:first-child {
	transform: none;
}

.cx-scale__axis em:last-child {
	transform: translateX(-100%);
}

.rw-home .cx-list {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.cx-row {
	padding: 14px 24px;
	border-top: 1px solid var(--rw-line);
}

.rw-home .cx-row__casino {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin: 0;
	color: var(--rw-ink);
	font-size: 15.5px;
	font-weight: 800;
}

.rw-home .cx-row__casino a {
	color: var(--rw-ink);
	text-decoration: none;
}

.rw-home .cx-row__casino a:hover,
.rw-home .cx-row__casino a:focus {
	color: var(--rw-red);
	text-decoration: underline;
}

.cx-row__out {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 0;
}

.cx-row__out strong {
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}

.cx-row__out span {
	color: var(--rw-text-2);
	font-size: 13.5px;
	line-height: 1.4;
}

.cx-tag {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	background: var(--rw-gold-soft);
	border-radius: 999px;
	color: var(--rw-gold-ink);
	font-size: 11.5px;
	font-style: normal;
	font-weight: 800;
	line-height: 1.5;
}

.cx-tag--combo {
	background: var(--rw-green-soft);
	color: var(--rw-green-ink);
}

.cx-bar {
	position: relative;
	display: block;
	height: 8px;
	background: #ECEDE9;
	border-radius: 999px;
	overflow: hidden;
}

.cx-bar i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, var(--rw-green), #2FAE73);
	border-radius: 999px;
}

.cx-row--open .cx-bar i {
	background: repeating-linear-gradient(135deg, var(--rw-gold) 0 6px, #E2C27A 6px 12px);
}

.cx-row:first-child .cx-row__out strong {
	color: var(--rw-green-ink);
}

.cx-row--unpublished,
.cx-row--deposit,
.cx-row--none {
	background: var(--rw-paper-2);
}

.cx-row--unpublished .cx-row__out strong {
	color: var(--rw-text-2);
	font-size: 15.5px;
}

.cx-row--deposit .cx-row__out strong,
.cx-row--none .cx-row__out strong {
	color: var(--rw-muted);
	font-size: 15.5px;
}

.cx-row--none .cx-row__casino,
.cx-row--none .lr-mini {
	opacity: .6;
}

.rw-home .cx-row--none .lr-row__go {
	background: transparent;
	border: 1px solid var(--rw-line);
	color: var(--rw-muted);
}

/* ---------- Casino cards ---------- */

.lr-card.cx-card {
	grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
}

.cx-cashier {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: radial-gradient(420px 220px at 100% 0, rgba(212, 168, 75, .12), transparent 60%), var(--rw-ink);
	border-radius: 14px;
	color: var(--rw-on-dark);
}

.rw-home .cx-cashier__k,
.rw-home .cx-cashier__label {
	margin: 0;
	color: var(--rw-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.rw-home .cx-cashier__label {
	color: var(--rw-on-dark-2);
	font-size: 11.5px;
}

.rw-home .cx-cashier__facts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}

.cx-cashier__facts div {
	padding: 10px 12px;
	background: var(--rw-ink-3);
	border: 1px solid var(--rw-ink-line);
	border-radius: 10px;
}

.cx-cashier__facts dt {
	color: var(--rw-on-dark-2);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.cx-cashier__facts dd {
	margin: 3px 0 0;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.rw-home .cx-coins {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cx-coins li {
	padding: 3px 9px;
	background: var(--rw-ink-3);
	border: 1px solid #3A3F47;
	border-radius: 999px;
	color: var(--rw-on-dark);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .02em;
}

.cx-coins li.is-out {
	background: rgba(212, 168, 75, .16);
	border-color: var(--rw-gold);
	color: #F1D58E;
}

.rw-home .cx-cashier__note {
	margin: 0;
	color: var(--rw-on-dark-2);
	font-size: 13px;
	line-height: 1.5;
}

.cx-key {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	background: var(--rw-gold);
	border-radius: 50%;
	vertical-align: 0;
}

/* ---------- Payout tests ---------- */

.cx-tests__axis,
.cx-tests__row {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr) 150px;
	gap: 18px;
	align-items: center;
}

.cx-tests__axis {
	margin-bottom: 4px;
}

.cx-tests__scale {
	position: relative;
	height: 14px;
}

.cx-tests__scale em {
	position: absolute;
	top: 0;
	color: var(--rw-on-dark-3);
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	white-space: nowrap;
	transform: translateX(-50%);
}

.cx-tests__scale em:first-child {
	transform: none;
}

.cx-tests__scale em:last-child {
	transform: translateX(-100%);
}

.rw-home .cx-tests__rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cx-tests__row {
	padding: 11px 0;
	border-top: 1px solid #23272E;
}

.cx-tests__name {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.rw-home .cx-tests__name a {
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
}

.rw-home .cx-tests__name a:hover,
.rw-home .cx-tests__name a:focus {
	color: var(--rw-gold);
}

.cx-tests__name small {
	color: var(--rw-on-dark-3);
	font-size: 12.5px;
	font-weight: 600;
}

.cx-tests__track {
	position: relative;
	display: block;
	height: 12px;
	background: #23272E;
	border-radius: 999px;
}

.cx-tests__track i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, #1E7A52, #2FAE73);
	border-radius: 999px;
}

.cx-tests__row b {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 800;
	text-align: right;
}

.rw-crypto #tests .lr-tips p {
	background: var(--rw-white);
}

/* ---------- Cashier screenshots ---------- */

.cx-shots {
	display: grid;
	gap: 18px;
	margin-top: 26px;
}

.cx-shots--tall {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cx-shots--wide {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rw-home .cx-shot {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	scroll-margin-top: 90px;
}

.rw-home .cx-shot__img {
	display: block;
	overflow: hidden;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(14, 16, 19, .04), 0 14px 30px -24px rgba(14, 16, 19, .35);
	transition: transform .15s ease, box-shadow .15s ease;
}

.rw-home .cx-shot__img:hover {
	transform: translateY(-2px);
	box-shadow: 0 1px 2px rgba(14, 16, 19, .04), 0 18px 36px -24px rgba(14, 16, 19, .45);
}

.cx-shots--tall .cx-shot__img {
	aspect-ratio: 3 / 4;
}

.cx-shots--wide .cx-shot__img {
	aspect-ratio: 16 / 9;
	padding: 10px;
	box-sizing: border-box;
}

.rw-home .cx-shot__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.rw-home .cx-shots--wide .cx-shot__img img {
	object-fit: contain;
	object-position: center;
}

.rw-home .cx-shot figcaption {
	color: var(--rw-text-2);
	font-size: 14px;
	line-height: 1.5;
}

.cx-shot figcaption strong {
	color: var(--rw-ink);
}

/* ---------- Coin table ---------- */

.cx-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 22px 0 14px;
	color: var(--rw-text-2);
	font-size: 14px;
	font-weight: 700;
}

.cx-legend span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.cx-dot {
	display: inline-block;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	box-sizing: border-box;
}

.cx-dot--out {
	background: var(--rw-green);
}

.cx-dot--any {
	background: linear-gradient(90deg, var(--rw-green) 50%, #FFFFFF 50%);
	border: 2px solid var(--rw-green);
}

.cx-dot--in {
	background: #FFFFFF;
	border: 2px solid #8E95A0;
}

.rw-home .rw-table.cx-matrix {
	min-width: 920px;
}

.rw-home .cx-matrix th,
.rw-home .cx-matrix td {
	padding-right: 10px;
	padding-left: 10px;
}

.rw-home .cx-matrix th:first-child,
.rw-home .cx-matrix td:first-child {
	padding-left: 18px;
}

.cx-matrix td.cx-cell {
	white-space: nowrap;
}

.cx-cell span {
	margin-left: 6px;
	font-size: 12.5px;
	font-weight: 700;
}

.cx-cell--out span {
	color: var(--rw-green-ink);
}

.cx-cell--any span {
	color: var(--rw-text-2);
}

.cx-cell--in span,
.cx-cell--none span {
	color: var(--rw-muted);
}

.cx-cell--none span {
	margin-left: 0;
}

.cx-matrix td.cx-other {
	min-width: 130px;
	color: var(--rw-text-2);
	font-size: 13px;
}

/* ---------- Which coin ---------- */

.cx-blocks__rows {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cx-blocks__row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 96px;
	gap: 18px;
	align-items: center;
	padding: 11px 0;
	border-top: 1px solid #23272E;
}

.cx-blocks__name {
	display: flex;
	flex-direction: column;
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
}

.cx-blocks__name small {
	color: var(--rw-on-dark-3);
	font-family: var(--rw-body);
	font-size: 12.5px;
	font-weight: 600;
}

.cx-blocks__track {
	position: relative;
	display: block;
	height: 12px;
	background: #23272E;
	border-radius: 999px;
}

.cx-blocks__track i {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	min-width: 8px;
	background: linear-gradient(90deg, var(--rw-gold), #F1D58E);
	border-radius: 999px;
}

.cx-blocks__row b {
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

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

.cx-coincard {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px;
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
}

.rw-home .cx-coincard__tick {
	align-self: flex-start;
	margin: 0;
	padding: 3px 10px;
	background: var(--rw-ink);
	border-radius: 999px;
	color: var(--rw-gold);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .06em;
}

.rw-home .cx-coincard h3 {
	margin: 4px 0 0;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.15;
}

.rw-home .cx-coincard__count {
	color: var(--rw-gold-text);
	font-size: 13.5px;
	font-weight: 800;
}

.rw-home .cx-coincard p:last-child {
	color: var(--rw-text-2);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- Price swings ---------- */

.cx-swing {
	margin-top: 30px;
}

.lr-sum__math div.is-down {
	background: rgba(200, 16, 46, .12);
	border-color: rgba(232, 72, 98, .45);
}

.lr-sum__math .is-down dd {
	color: #F07A8E;
}

/* ---------- Bonus sums ---------- */

.cx-math {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 28px;
	align-items: center;
	margin-top: 28px;
	padding: 26px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 18px;
}

.rw-home .cx-math__k {
	color: var(--rw-red);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.rw-home .cx-math__copy h3 {
	margin: 6px 0 10px;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 23px;
	font-weight: 800;
	line-height: 1.15;
}

.rw-home .cx-math__copy p:not(.cx-math__k) {
	color: var(--rw-text-2);
	font-size: 15.5px;
	line-height: 1.6;
}

.rw-home .cx-math__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: cxm;
}

.cx-math__steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px;
	background: var(--rw-paper);
	border-radius: 12px;
}

.cx-math__steps li + li::before {
	position: absolute;
	top: 50%;
	left: -9px;
	width: 8px;
	height: 8px;
	border-top: 2px solid #B8BCC2;
	border-right: 2px solid #B8BCC2;
	content: "";
	transform: translate(-25%, -50%) rotate(45deg);
}

.cx-math__steps span {
	color: var(--rw-muted);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

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

.cx-math__steps em {
	color: var(--rw-muted);
	font-size: 13px;
	font-style: normal;
}

.cx-math__steps li.is-bad {
	background: #FBEAED;
}

.cx-math__steps li.is-bad strong {
	color: var(--rw-bad);
}

/* ---------- Steps ---------- */

.rw-home .cx-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin: 26px 0 0;
	padding: 0;
	list-style: none;
}

.cx-steps li {
	position: relative;
	padding: 22px 22px 22px 74px;
	background: var(--rw-paper);
	border-radius: var(--rw-radius);
}

.cx-steps__n {
	position: absolute;
	top: 20px;
	left: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	background: var(--rw-ink);
	border-radius: 11px;
	color: var(--rw-gold);
	font-family: var(--rw-display);
	font-size: 18px;
	font-weight: 800;
}

.rw-home .cx-steps h3 {
	margin: 0 0 6px;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
}

.rw-home .cx-steps p {
	color: var(--rw-text-2);
	font-size: 15px;
	line-height: 1.6;
}

.rw-crypto #how-to .lr-advice {
	margin-top: 22px;
}

.rw-crypto #how-to .lr-advice > div {
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
}

/* ---------- Law and taxes ---------- */

.cx-tax {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.cx-tax__col {
	padding: 22px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-top: 3px solid var(--rw-gold);
	border-radius: var(--rw-radius);
}

.rw-home .cx-tax h3 {
	margin: 0 0 8px;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
}

.rw-home .cx-tax p {
	color: var(--rw-text-2);
	font-size: 15px;
	line-height: 1.6;
}

/* ---------- FAQ extras ---------- */

.rw-crypto #faq .lr-practice {
	margin-top: 30px;
}

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

@media (max-width: 1080px) {
	.cx-shots--tall {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cx-coincards,
	.rw-home .cx-steps,
	.cx-tax {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	.lr-card.cx-card,
	.cx-math {
		grid-template-columns: minmax(0, 1fr);
	}

	.cx-blocks__row,
	.cx-tests__row {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 8px 14px;
	}

	.cx-blocks__track,
	.cx-tests__track {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.cx-tests__axis {
		display: none;
	}

	.cx-shots--wide {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 720px) {
	.cx-scale {
		display: none;
	}

	.cx-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"casino go"
			"out out"
			"bar bar";
		gap: 8px 12px;
		padding: 14px 16px;
	}

	.rw-home .cx-row__casino {
		grid-area: casino;
	}

	.cx-row__out {
		grid-area: out;
	}

	.cx-row__bar {
		grid-area: bar;
	}

	.cx-row__bar:empty {
		display: none;
	}

	.cx-row .lr-row__go {
		grid-area: go;
	}

	.cx-coincards,
	.rw-home .cx-steps,
	.cx-tax {
		grid-template-columns: minmax(0, 1fr);
	}

	.rw-home .cx-math__steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.cx-math__steps li + li::before {
		display: none;
	}
}

@media (max-width: 640px) {
	.cx-math {
		padding: 18px 14px;
		border-radius: 16px;
	}

	.cx-cashier {
		padding: 16px;
	}

	.cx-math__steps strong {
		font-size: 22px;
	}

	.cx-steps li {
		padding: 18px 18px 18px 66px;
	}

	.cx-steps__n {
		top: 18px;
		left: 16px;
	}

	.cx-legend {
		flex-direction: column;
		gap: 8px;
	}
}
