/* =========================================================================
   Roulette table (/roulette-table/). Loaded after learn.css and french.css
   (which holds the hero pick, the real-money call to action and the
   download cards). The casino table in the hero is the one bold element;
   everything below follows the learn pages.
   ========================================================================= */

.rt {
	--rt-red: #C8102E;
	--rt-black: #1F2329;
	--rt-green: #1E8A57;
	--rt-felt: #17633F;
	--rt-cream: #F2E8CF;
}

/* ---------- Hero ---------- */

.rt-hero__top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
	gap: 24px 56px;
	align-items: end;
	margin-top: 28px;
}

.rt-hero__copy .rw-hero__lead {
	margin-bottom: 0;
}

.rw-home .rt-hero__side .rw-hero__stats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 0;
}

.rt-hero__side .rw-hero__stats li:nth-child(odd) {
	padding-left: 0;
	border-left: 0;
}

.rt-hero__side .rw-hero__stats li:nth-child(n+3) {
	border-top: 1px solid #262A31;
}

.rw-home .rt-hero__side .rw-hero__stats strong {
	font-size: 26px;
}

.rt-toppick {
	margin-top: 18px;
}

/* ---------- The table ---------- */

.rt-stage {
	margin-top: 30px;
	padding: 18px;
	background: #121418;
	border: 1px solid var(--rw-ink-line);
	border-radius: 22px;
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.rt-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
}

.rt-seg {
	display: inline-flex;
	padding: 3px;
	background: #0B0D10;
	border: 1px solid var(--rw-ink-line);
	border-radius: 999px;
}

.rw-home .rt-seg button {
	min-height: 36px;
	margin: 0;
	padding: 6px 14px;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--rw-on-dark-2);
	font-family: var(--rw-body);
	font-size: 13.5px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
}

.rw-home .rt-seg button:hover {
	color: #FFFFFF;
}

.rw-home .rt-seg button[aria-pressed="true"] {
	background: var(--rw-gold);
	color: var(--rw-ink);
}

.rt-find {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
}

.rw-home .rt-find label {
	color: var(--rw-on-dark-2);
	font-size: 13.5px;
	font-weight: 700;
	white-space: nowrap;
}

.rw-home .rt-find input {
	width: 72px;
	height: 38px;
	margin: 0;
	padding: 0 10px;
	background: #0B0D10;
	border: 1px solid var(--rw-ink-line);
	border-radius: 10px;
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 17px;
	font-weight: 800;
	text-align: center;
}

.rw-home .rt-find input::placeholder {
	color: var(--rw-on-dark-3);
	font-size: 14px;
	font-weight: 700;
}

.rw-home .rt-find button {
	height: 38px;
	margin: 0;
	padding: 0 16px;
	background: var(--rw-gold);
	border: 0;
	border-radius: 10px;
	color: var(--rw-ink);
	font-family: var(--rw-body);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.rw-home .rt-find button:hover {
	background: #E2BC66;
}

.rt-pats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
}

.rw-home .rt-pats button {
	min-height: 34px;
	margin: 0;
	padding: 5px 12px;
	background: transparent;
	border: 1px solid var(--rw-ink-line);
	border-radius: 999px;
	color: var(--rw-on-dark);
	font-family: var(--rw-body);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
}

.rw-home .rt-pats button:hover {
	border-color: var(--rw-on-dark-3);
	color: #FFFFFF;
}

.rw-home .rt-pats button[aria-pressed="true"] {
	background: var(--rw-gold);
	border-color: var(--rw-gold);
	color: var(--rw-ink);
}

.rw-home .rt-seg button:focus-visible,
.rw-home .rt-pats button:focus-visible,
.rw-home .rt-find button:focus-visible,
.rw-home .rt-find input:focus-visible {
	outline: 2px solid var(--rw-gold);
	outline-offset: 2px;
}

.rt-stage__main {
	display: flex;
	flex-direction: column;
}

.rt-table {
	order: 1;
	margin-top: 16px;
}

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

.rt-svg--port {
	display: none;
}

.rt-hit {
	cursor: pointer;
	outline: none;
	transition: opacity .2s ease;
}

.rt-hit .rt-cell {
	transition: stroke .15s ease, fill .15s ease, fill-opacity .15s ease;
}

.rt-hit:hover .rt-cell {
	stroke: #D4A84B;
	stroke-width: 3;
}

.rt-hit:focus-visible .rt-cell {
	stroke: #FFFFFF;
	stroke-width: 4;
}

.has-hl .rt-hit:not(.is-hit) {
	opacity: .28;
}

.rt-hit.is-hit .rt-cell {
	fill: #D4A84B;
	fill-opacity: .2;
	stroke: #D4A84B;
	stroke-width: 3.5;
}

.rt-deco {
	transition: opacity .2s ease;
}

.has-hl .rt-deco {
	opacity: .3;
}

/* ---------- The card ---------- */

.rt-card {
	order: 2;
	display: grid;
	grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
	gap: 10px 24px;
	align-items: center;
	margin-top: 16px;
	padding: 16px 18px;
	background: #0B0D10;
	border: 1px solid var(--rw-ink-line);
	border-radius: 16px;
}

.rw-home .rt-card__k {
	grid-column: 1;
	color: var(--rw-gold);
	font-size: 13px;
	font-weight: 800;
}

.rt-card__head {
	grid-column: 1;
	display: flex;
	gap: 14px;
	align-items: center;
}

.rt-card__badge {
	display: grid;
	flex: none;
	place-items: center;
	min-width: 54px;
	height: 54px;
	padding: 0 8px;
	border: 2px solid rgba(255, 255, 255, .85);
	border-radius: 12px;
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

.rt-c--r {
	background: var(--rt-red);
}

.rt-c--b {
	background: var(--rt-black);
}

.rt-c--g {
	background: var(--rt-green);
}

.rt-card__badge.rt-c--o {
	background: transparent;
	border-color: var(--rw-gold);
	color: var(--rw-gold);
	font-size: 19px;
}

.rw-home .rt-card__title {
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
}

.rw-home .rt-card__sum {
	margin-top: 4px;
	color: var(--rw-on-dark-2);
	font-size: 14px;
	line-height: 1.45;
}

.rw-home .rt-card__facts {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.rt-card__facts > div {
	padding: 10px 12px;
	background: #14171B;
	border: 1px solid var(--rw-ink-line);
	border-radius: 12px;
}

.rt-card__facts > div[hidden] {
	display: none;
}

.rw-home .rt-card__facts dt {
	color: var(--rw-on-dark-3);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
}

.rw-home .rt-card__facts dd {
	margin: 4px 0 0;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.3;
}

.rw-home .rt-hint {
	margin-top: 12px;
	color: var(--rw-on-dark-2);
	font-size: 13.5px;
	line-height: 1.5;
}

/* ---------- Layout areas and two-column notes ---------- */

.rt-areas th[scope="row"] {
	white-space: nowrap;
}

.rt-io {
	margin-top: 32px;
}

.rw-home .rt-io h3,
.rw-home .rt-colors h3 {
	margin-bottom: 10px;
	color: var(--rw-text);
	font-size: 19px;
	font-weight: 800;
}

.rw-home .rt-io p + p,
.rw-home .rt-colors__copy p + p,
.rw-home .rt-chipsplit p + p {
	margin-top: 12px;
}

/* ---------- Numbers ---------- */

.rw-home .rt-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin: 26px 0 0;
	list-style: none;
}

.rt-facts li {
	padding: 18px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
}

.rt-facts strong {
	display: block;
	color: var(--rw-text);
	font-family: var(--rw-display);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
}

.rt-facts span {
	display: block;
	margin-top: 8px;
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.45;
}

.rt-colors {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 28px 40px;
	align-items: start;
	margin-top: 36px;
}

.rw-home .rt-bands {
	display: grid;
	gap: 10px;
}

.rt-band {
	padding: 12px 14px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 14px;
}

.rw-home .rt-band__k {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	margin-bottom: 8px;
	font-size: 14px;
}

.rt-band__k strong {
	color: var(--rw-text);
	font-family: var(--rw-display);
	font-weight: 800;
}

.rt-band__k span {
	color: var(--rw-muted);
}

.rw-home .rt-band__nums {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	list-style: none;
}

.rt-band__nums li {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: #FFFFFF;
	font-family: var(--rw-display);
	font-size: 14px;
	font-weight: 800;
}

.rt-chart {
	margin: 36px 0 0;
	padding: 22px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: var(--rw-radius);
}

.rt-chart__head {
	margin-bottom: 16px;
}

.rt-chart__head strong {
	display: block;
	color: var(--rw-text);
	font-family: var(--rw-display);
	font-size: 18px;
	font-weight: 800;
}

.rt-chart__head span {
	display: block;
	margin-top: 4px;
	color: var(--rw-text-2);
	font-size: 14.5px;
}

.rt-chart svg {
	display: block;
	width: 100%;
	max-width: 720px;
	height: auto;
}

.rt-chart__lab {
	fill: var(--rw-text);
	font-family: var(--rw-body);
	font-size: 14px;
	font-weight: 700;
	text-anchor: end;
	dominant-baseline: central;
}

.rt-chart__r {
	fill: var(--rt-red);
}

.rt-chart__b {
	fill: var(--rt-black);
}

.rt-chart__n {
	fill: #FFFFFF;
	font-family: var(--rw-body);
	font-size: 13px;
	font-weight: 800;
	dominant-baseline: central;
}

.rt-chart .rw-fineprint {
	margin-top: 14px;
}

/* ---------- Table types ---------- */

.rt-types th[scope="row"] {
	width: 22%;
}

/* ---------- Parts ---------- */

.rt-anat {
	margin-top: 26px;
}

.rt-anat__fig {
	margin: 0;
}

.rt-svg--parts {
	display: block;
}

.rw-home .rt-anat__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 22px;
	list-style: none;
}

.rt-anat__list li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 14px;
}

.rt-anat__n {
	display: grid;
	flex: none;
	place-items: center;
	width: 28px;
	height: 28px;
	background: var(--rw-gold);
	border-radius: 50%;
	color: var(--rw-ink);
	font-family: var(--rw-display);
	font-size: 14px;
	font-weight: 800;
}

.rt-anat__list strong {
	display: block;
	color: var(--rw-text);
	font-family: var(--rw-display);
	font-size: 16px;
	font-weight: 800;
}

.rt-anat__list span:not(.rt-anat__n) {
	display: block;
	margin-top: 4px;
	color: var(--rw-text-2);
	font-size: 14px;
	line-height: 1.5;
}

.rw-home .rt-specs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
	list-style: none;
}

.rt-specs li {
	padding: 16px 18px;
	background: var(--rw-ink);
	border-radius: 14px;
}

.rt-specs strong {
	display: block;
	color: var(--rw-gold);
	font-family: var(--rw-display);
	font-size: 21px;
	font-weight: 800;
}

.rt-specs span {
	display: block;
	margin-top: 6px;
	color: var(--rw-on-dark);
	font-size: 14px;
	line-height: 1.5;
}

.rw-home .rt-specs a {
	color: #FFFFFF;
	text-decoration-color: var(--rw-gold);
}

/* ---------- Chips ---------- */

.rt-chipsplit {
	margin-top: 8px;
}

.rt-chipcard {
	padding: 20px;
	background: var(--rt-felt);
	border-radius: var(--rw-radius);
	box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .18);
}

.rt-chipcard svg {
	display: block;
	width: 100%;
	max-width: 360px;
	height: auto;
	margin: 0 auto;
}

.rw-home .rt-rules {
	display: grid;
	gap: 10px;
	margin-top: 14px;
	list-style: none;
}

.rt-rules li {
	padding: 12px 14px;
	background: rgba(0, 0, 0, .22);
	border-radius: 12px;
	color: #E8EEE9;
	font-size: 14.5px;
	line-height: 1.5;
}

.rt-rules strong {
	color: #FFFFFF;
}

/* ---------- Limits ---------- */

.rw-home .rt-limits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 26px;
}

.rt-limit {
	padding: 20px;
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-top: 4px solid var(--rt-felt);
	border-radius: 14px;
}

.rw-home .rt-limit h3 {
	margin-bottom: 8px;
	color: var(--rw-text);
	font-size: 18px;
	font-weight: 800;
}

.rw-home .rt-limit p {
	color: var(--rw-text-2);
	font-size: 15px;
	line-height: 1.55;
}

.rt-limits + .rw-fineprint {
	margin-top: 18px;
}

/* ---------- Online ---------- */

.rw-home .rt-try {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 22px;
}

.rw-home .rt-try__card {
	display: block;
	padding: 18px;
	background: var(--rw-white);
	border: 1px solid var(--rw-line);
	border-radius: 14px;
	color: var(--rw-text);
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.rw-home .rt-try__card:hover {
	border-color: var(--rw-gold);
	box-shadow: 0 10px 24px -16px rgba(14, 16, 19, .5);
}

.rw-home .rt-try__card:focus-visible {
	outline: 2px solid var(--rw-gold);
	outline-offset: 2px;
}

.rt-try__card span,
.rt-try__card strong {
	display: block;
}

.rt-try__k {
	color: var(--rw-gold-text);
	font-size: 13px;
	font-weight: 800;
}

.rt-try__card strong {
	margin-top: 4px;
	font-family: var(--rw-display);
	font-size: 18px;
	font-weight: 800;
}

.rt-try__card span:last-child {
	margin-top: 6px;
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.5;
}

/* ---------- Home tables ---------- */

.rw-home .rt-home {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
	list-style: none;
}

.rt-home li {
	padding: 18px;
	background: var(--rw-paper);
	border: 1px solid var(--rw-line);
	border-radius: 14px;
}

.rt-home strong {
	display: block;
	color: var(--rw-text);
	font-family: var(--rw-display);
	font-size: 17px;
	font-weight: 800;
}

.rt-home span {
	display: block;
	margin-top: 6px;
	color: var(--rw-text-2);
	font-size: 14.5px;
	line-height: 1.5;
}

.rt-home + .rw-fineprint {
	margin-top: 18px;
}

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

@media (max-width: 1023px) {
	.rt-hero__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.rw-home .rt-hero__side .rw-hero__stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.rt-hero__side .rw-hero__stats li:nth-child(odd) {
		padding-left: 18px;
		border-left: 1px solid #262A31;
	}

	.rt-hero__side .rw-hero__stats li:first-child {
		padding-left: 0;
		border-left: 0;
	}

	.rt-hero__side .rw-hero__stats li:nth-child(n+3) {
		border-top: 0;
	}

	.rt-toppick {
		max-width: 440px;
	}

	.rt-pats {
		margin-left: 0;
	}

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

	.rw-home .rt-card__facts {
		grid-column: 1;
		grid-row: auto;
	}

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

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

	.rw-home .rt-anat__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rw-home .rt-specs,
	.rw-home .rt-limits,
	.rw-home .rt-try {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	/* Phones: the table comes straight after the intro; the stats and the pick follow it. */
	.rt-hero .rw-hero__inner {
		display: flex;
		flex-direction: column;
	}

	.rt-hero__top {
		display: contents;
	}

	.rt-hero__copy {
		order: 1;
		margin-top: 22px;
	}

	.rt-stage {
		order: 2;
		margin-top: 22px;
	}

	.rt-hero__side {
		order: 3;
		margin-top: 24px;
	}

	.rt-svg--land {
		display: none;
	}

	.rt-svg--port {
		display: block;
		max-width: 420px;
		margin: 0 auto;
	}

	.rt-stage {
		padding: 14px 12px;
		border-radius: 18px;
	}

	.rt-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.rt-seg {
		display: flex;
	}

	.rw-home .rt-seg button {
		flex: 1 1 0;
	}

	/* Let the card stick: hidden overflow would trap it. */
	.rw-home .rt-hero {
		overflow: clip;
	}

	.rt-bar {
		flex-wrap: nowrap;
		gap: 10px;
	}

	.rt-bar > * {
		min-width: 0;
	}

	.rw-home .rt-find label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.rw-home .rt-find input {
		flex: 1 1 auto;
		width: auto;
	}

	.rt-pats {
		flex-wrap: nowrap;
		margin-right: -12px;
		padding-right: 12px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.rt-pats::-webkit-scrollbar {
		display: none;
	}

	.rw-home .rt-pats button {
		flex: none;
	}

	/* The card rides along at the top while you scroll the layout. */
	.rt-card {
		order: 0;
		position: sticky;
		top: 72px;
		z-index: 5;
		gap: 8px;
		margin-top: 14px;
		padding: 12px;
		box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
	}

	.admin-bar .rt-card {
		top: 118px;
	}

	.rw-home .rt-card__k {
		display: none;
	}

	.rt-card__head {
		gap: 10px;
	}

	.rt-card__badge {
		min-width: 40px;
		height: 40px;
		padding: 0 6px;
		border-radius: 10px;
		font-size: 18px;
	}

	.rw-home .rt-card__title {
		font-size: 16px;
	}

	.rw-home .rt-card__sum {
		margin-top: 2px;
		font-size: 12.5px;
		line-height: 1.4;
	}

	.rw-home .rt-card__facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.rt-card__facts > div {
		padding: 5px 8px;
		border-radius: 8px;
	}

	.rw-home .rt-card__facts dt {
		font-size: 10.5px;
	}

	.rw-home .rt-card__facts dd {
		margin-top: 1px;
		font-size: 13px;
	}

	.rt-table {
		margin-top: 12px;
	}
}

@media (max-width: 640px) {
	.rw-home .rt-hero__side .rw-hero__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rt-hero__side .rw-hero__stats li:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.rt-hero__side .rw-hero__stats li:nth-child(n+3) {
		border-top: 1px solid #262A31;
	}

	.rw-home .rt-facts,
	.rw-home .rt-home,
	.rw-home .rt-anat__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.rt-anat__fig {
		margin-right: -16px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.rt-svg--parts {
		min-width: 760px;
	}

	.rt-chart {
		padding: 16px;
	}

	.rt-chipcard {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rt-hit,
	.rt-hit .rt-cell,
	.rt-deco {
		transition: none;
	}
}
