/* Ludo Hub: Chess Hub's look as the app uses it (LudoColors): black with a warm glow, mint accent.
   Unlike the other brands it follows the device's light or dark mode, like the app does. */
:root {
	--bg: #0b0a09;
	--bg-raised: #1a1a1a;
	--line: rgba(255, 255, 255, 0.1);
	--text: #ffffff;
	--text-muted: rgba(255, 255, 255, 0.7);
	--doc-text: #d9d9d9;
	--accent: #7fffb0;
	--accent-text: #7fffb0;
	--accent-ink: #07301a;
	--ray: rgba(255, 244, 232, 0.06);
	--glow: rgba(78, 66, 56, 0.55);
	--icon-rim: rgba(255, 255, 255, 0.18);
	/* The classic board colours (ludo_palette.dart). */
	--red: #e53935;
	--green: #22a845;
	--yellow: #ffc107;
	--blue: #1e88e5;
}

@media (prefers-color-scheme: light) {
	:root {
		color-scheme: light;
		--bg: #f2f2f7;
		--bg-raised: #ffffff;
		--line: rgba(0, 0, 0, 0.1);
		--text: #111114;
		--text-muted: rgba(17, 17, 20, 0.65);
		--doc-text: #2c2c30;
		--accent: #5ee89a;
		--accent-text: #13874a;
		--accent-ink: #06331b;
		--ray: rgba(19, 135, 74, 0.07);
		--glow: rgba(94, 232, 154, 0.28);
		--icon-rim: rgba(0, 0, 0, 0.1);
	}

	.hero-shot img {
		filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.22));
	}

	.feature {
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	}
}

/* site.css assumes a dark page in a few places. */
.brand img {
	border-color: var(--icon-rim);
}

h1 em,
.doc a {
	color: var(--accent-text);
}

.doc p,
.doc li {
	color: var(--doc-text);
}

.doc ol {
	padding-left: 22px;
}

/* The app's GlowBackground: a warm glow at the top of the page. */
body {
	background:
		radial-gradient(ellipse 90% 60% at 70% -10%, var(--glow), transparent 70%) no-repeat,
		var(--bg);
}

/* A strip of the four board colours under the header, like the app's progress bars. */
.site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	background: linear-gradient(90deg, var(--red) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--blue) 75%);
	opacity: 0.85;
}

/* "Coming soon" store buttons, until the app is in the stores. */
.soon-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.cta .soon-badges {
	justify-content: center;
}

.soon-badge {
	position: relative;
	display: block;
	border-radius: 9px;
}

.soon-badge img {
	height: 54px;
	width: auto;
	opacity: 0.55;
	filter: grayscale(0.4);
}

.soon-badge span {
	position: absolute;
	top: -14px;
	right: -8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--accent-ink);
	font: 700 11px/1.5 var(--body);
	letter-spacing: 0.02em;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.feature .tag {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent-text);
	font: 700 12px/1.6 var(--body);
	vertical-align: 4px;
	letter-spacing: 0.02em;
}

/* Rules, as four coloured cards. */
.rules {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.rule {
	position: relative;
	padding: 22px 22px 20px;
	border-radius: var(--radius);
	background: var(--bg-raised);
	border: 1px solid var(--line);
	overflow: hidden;
}

.rule::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	background: var(--c);
}

.rule b {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--c);
	color: #fff;
	font: 800 17px/1 var(--display);
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 0 3px #e2a72e;
}

.rule h3 {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 6px;
}

.rule p {
	margin: 0;
	color: var(--text-muted);
	font-size: 15px;
}

@media (max-width: 860px) {
	.rules {
		grid-template-columns: 1fr 1fr;
	}

	.soon-badges {
		justify-content: center;
	}
}

@media (max-width: 560px) {
	.soon-badge img {
		height: 48px;
	}

	.rules {
		grid-template-columns: 1fr;
	}
}
