/* Layout: the DemoSlot masthead over two columns, the partner's route as a sticky rail on the left
   and the tour's reading column with its live screens on the right; below 900px the rail becomes a
   scrolling row under the masthead. The look is demoslot.com's own: navy ground, cards, the accent
   blue for links and the current step, yellow for the route walked so far. */
:root {
	--navy: #080925;
	--deep: #13153a;
	--card: #242741;
	--line: #2c3052;
	--line-strong: #454b7c;
	--fg: #f2f3fa;
	--text: #c3c5d6;
	--muted: #a3a5b4;
	--blue: #004eec;
	--light-blue: #66a7ff;
	--yellow: #ffd119;
	--font: system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Ubuntu, Roboto, Noto, "Segoe UI", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--mast: 64px;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--mast) + 16px);
	scrollbar-color: var(--line-strong) var(--navy);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--navy);
	color: var(--text);
	font: 16px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

::selection {
	background: var(--blue);
	color: #ffffff;
}

a {
	color: var(--light-blue);
	text-underline-offset: 3px;
}

a:hover {
	color: #ffffff;
}

:focus-visible {
	outline: 2px solid var(--light-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

code {
	font: 0.88em/1.4 var(--mono);
	color: var(--fg);
}

.skip {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 10;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--yellow);
	color: #15130a;
	font-weight: 700;
	text-decoration: none;
}

.skip:focus {
	top: 12px;
}

/* ---------- masthead ---------- */
.mast {
	position: sticky;
	top: 0;
	z-index: 5;
	height: var(--mast);
	border-bottom: 1px solid var(--line);
	background: rgba(8, 9, 37, 0.92);
	backdrop-filter: blur(10px);
}

.mast__in {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	max-width: 1320px;
	height: 100%;
	margin: 0 auto;
	padding: 0 24px;
}

.mast__brand {
	display: flex;
	gap: 10px;
	align-items: center;
	color: var(--fg);
	text-decoration: none;
}

.mast__brand img {
	display: block;
	width: auto;
	height: 26px;
}

.mast__brand span {
	padding: 3px 8px;
	border-radius: 6px;
	background: var(--blue);
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.mast__nav {
	display: flex;
	gap: 18px;
	font-size: 14px;
	font-weight: 600;
}

.mast__nav a {
	color: var(--text);
	text-decoration: none;
}

.mast__nav a:hover {
	color: #ffffff;
}

/* ---------- route rail and reading column ---------- */
.frame {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 48px;
	max-width: 1320px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.route {
	position: sticky;
	top: calc(var(--mast) + 32px);
	align-self: start;
}

.route__list {
	position: relative;
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* The route line: grey for the way ahead, yellow for the steps behind and the current one. */
.route__list::before,
.route__list::after {
	content: "";
	position: absolute;
	left: 15px;
	top: 18px;
	width: 2px;
	border-radius: 1px;
}

.route__list::before {
	bottom: 18px;
	background: var(--line-strong);
}

.route__list::after {
	height: var(--route, 0px);
	background: var(--yellow);
	transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.route__list a {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 6px 8px 6px 0;
	color: var(--muted);
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.route__list a:hover {
	color: var(--fg);
}

.route__n {
	display: grid;
	place-items: center;
	flex: none;
	width: 32px;
	height: 32px;
	border: 2px solid var(--line-strong);
	border-radius: 50%;
	background: var(--navy);
	color: var(--muted);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.route__list .is-done .route__n {
	border-color: var(--yellow);
	background: var(--yellow);
	color: #15130a;
}

.route__list .is-now a {
	color: var(--fg);
}

.route__list .is-now .route__n {
	border-color: var(--yellow);
	background: var(--navy);
	color: var(--yellow);
}

.doc {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 72px;
	min-width: 0;
}

.doc h1 {
	max-width: 22ch;
	margin: 0 0 16px;
	color: var(--fg);
	font-size: clamp(32px, 4.4vw, 52px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.doc h2 {
	display: flex;
	gap: 14px;
	align-items: center;
	margin: 0 0 12px;
	color: var(--fg);
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.part__n {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--yellow);
	color: #15130a;
	font-size: 17px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.doc p {
	max-width: 68ch;
	margin: 0 0 14px;
}

.lead {
	color: var(--fg);
	font-size: 18.5px;
	line-height: 1.55;
}

.note {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--deep);
	font-size: 15px;
}

.todo {
	padding: 14px 16px;
	border: 1px dashed var(--line-strong);
	border-radius: 12px;
	color: var(--muted);
	font-size: 15px;
}

/* "See it working": the subheads of its two sites and the line that says how the games start. */
.sub {
	margin: 36px 0 8px;
	color: var(--fg);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}

.mode {
	padding: 12px 16px;
	border-left: 3px solid var(--line-strong);
	border-radius: 0 12px 12px 0;
	background: var(--deep);
	font-size: 15px;
}

.mode[data-dsp-mode="test"] {
	border-left-color: var(--yellow);
}

.mode[data-dsp-mode="studio"] {
	border-left-color: var(--light-blue);
}

.route__n--end::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: currentColor;
}

/* The five steps of "How it works": one row, the route's own dots. */
.steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 28px 0 22px;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	display: grid;
	gap: 6px;
	align-content: start;
	padding: 16px;
	border-radius: 14px;
	background: var(--card);
	counter-increment: step;
}

.steps li::before {
	content: counter(step);
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--yellow);
	color: #15130a;
	font-size: 13px;
	font-weight: 800;
}

.steps b {
	color: var(--fg);
	font-size: 15.5px;
}

.steps span {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.45;
}

/* ---------- live screen in a browser frame ---------- */
.screen {
	margin: 24px 0 0;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--deep);
	overflow: hidden;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.screen__bar {
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 0;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	background: var(--card);
}

.screen__bar i {
	flex: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--line-strong);
}

.screen__url {
	flex: 1 1 auto;
	min-width: 0;
	padding: 5px 10px;
	border-radius: 8px;
	background: var(--navy);
	color: var(--text);
	font: 12.5px/1.3 var(--mono);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.screen__tag {
	flex: none;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255, 209, 25, 0.14);
	color: var(--yellow);
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.screen__open {
	flex: none;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.screen__tabs {
	display: flex;
	gap: 4px;
	padding: 8px 10px;
	border-bottom: 1px solid var(--line);
	background: var(--deep);
	overflow-x: auto;
	scrollbar-width: thin;
}

.screen__tabs button {
	flex: none;
	padding: 7px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--muted);
	font: 700 13px/1 var(--font);
	cursor: pointer;
}

.screen__tabs button:hover {
	color: var(--fg);
}

.screen__tabs button[aria-pressed="true"] {
	background: var(--card);
	color: var(--fg);
}

.screen iframe {
	display: block;
	width: 100%;
	height: min(760px, 78vh);
	border: 0;
	background: #ffffff;
}

.screen__viewport {
	overflow: hidden;
}

.screen__viewport iframe {
	transform-origin: 0 0;
}

.screen figcaption {
	padding: 12px 16px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

.end {
	padding-top: 24px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	/* The route row sticks under the masthead too: anchors land below both. */
	html {
		scroll-padding-top: calc(var(--mast) + 72px);
	}

	.frame {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		padding: 0 16px 64px;
	}

	.route {
		position: sticky;
		top: var(--mast);
		z-index: 4;
		margin: 0 -16px 28px;
		padding: 10px 16px;
		border-bottom: 1px solid var(--line);
		background: rgba(8, 9, 37, 0.95);
		overflow-x: auto;
		scrollbar-width: none;
	}

	.route__list {
		display: flex;
		gap: 6px;
		width: max-content;
	}

	.route__list::before,
	.route__list::after {
		display: none;
	}

	.route__list a {
		padding: 4px 10px 4px 4px;
		border-radius: 999px;
		background: var(--deep);
		font-size: 13.5px;
		white-space: nowrap;
	}

	.route__n {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}

	.mast__in {
		padding: 0 16px;
	}

	.mast__nav a:first-child {
		display: none;
	}

	.doc {
		gap: 56px;
	}

	.screen iframe {
		height: 620px;
	}

	.screen__tag {
		display: none;
	}
}

@media (max-width: 520px) {
	.steps {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.steps li {
		grid-template-columns: 28px minmax(0, 1fr);
		column-gap: 12px;
		row-gap: 2px;
		padding: 12px 14px;
	}

	.steps li::before {
		grid-row: span 2;
	}

	.mast .wide {
		display: none;
	}

	/* A phone's whole width for the screen, so the site inside gets the width a phone gives it. */
	.screen {
		margin-left: -16px;
		margin-right: -16px;
		border-right: 0;
		border-left: 0;
		border-radius: 0;
	}

	.lead {
		font-size: 17px;
	}

	.screen__bar i {
		display: none;
	}
}
