/* Casino Catalog — Lotsia skin (bigbassslots.pro).
   A pilot chart of one lake, at night: night-teal water that darkens with
   depth, sea-foam text, a red-and-white bobber for buttons, scores and the
   numbered checks, orchid for the marks of the chart (the win limit, notes),
   sand for the land (theme chips). No amber or gold: those belong to the dark
   skins of the engine. Zilla Slab headings with its italic for the labels of
   the water, Source Sans 3 text, JetBrains Mono figures. Dark only.
   Restyles the parent theme through its --cgt-* tokens plus the skin's own
   pieces (hero and depth chart, catch tags, themes, series, tiles). */

/* ---------- Fonts (self-hosted, SIL OFL 1.1, see ../fonts/OFL.txt) ---------- */

@font-face {
	font-family: "Zilla Slab";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/zilla-slab-500.woff2") format("woff2");
}

@font-face {
	font-family: "Zilla Slab";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/zilla-slab-600.woff2") format("woff2");
}

@font-face {
	font-family: "Zilla Slab";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/zilla-slab-700.woff2") format("woff2");
}

@font-face {
	font-family: "Zilla Slab";
	font-style: italic;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/zilla-slab-500-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Zilla Slab";
	font-style: italic;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/zilla-slab-600-italic.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-sans-3.woff2") format("woff2");
}

@font-face {
	font-family: "Source Sans 3";
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
	color-scheme: dark;

	/* Parent tokens. The accent is the link cyan, so every place the parent prints accent text stays
	   readable on the dark water; buttons get the bobber below. */
	--cgt-bg: #0a2730;
	--cgt-surface: #0f3440;
	--cgt-card: #0f3440;
	--cgt-ink: #e3f0ef;
	--cgt-ink-soft: #9ec0c4;
	--cgt-line: #2a5d69;
	--cgt-accent: #7fd3e0;
	--cgt-accent-ink: #0a2730;
	--cgt-good: #7cd6a4;
	--cgt-radius: 14px;
	--cgt-shadow: 0 18px 34px -26px rgba(0, 0, 0, 0.9);
	--cgt-font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

	/* The lake. Contrast ratios (WCAG 2.x) are listed in README.md. */
	--lot-night: #0a2730;      /* the water of the chart: page ground */
	--lot-header: #0c2d37;
	--lot-chart: #08222a;      /* the chart box and the shore strip */
	--lot-panel: #0f3440;      /* cards, panels */
	--lot-panel-2: #134150;    /* raised */
	--lot-abyss: #061a20;      /* the deepest water: footer, outlines */
	--lot-shallow: #1b5866;    /* shallows: water chips */
	--lot-line: #2a5d69;       /* thin rules */
	--lot-edge: #3f7f8d;       /* card frames */
	--lot-ink: #e3f0ef;        /* text: sea foam, 13.4:1 on the night water */
	--lot-ink-soft: #9ec0c4;   /* secondary text, 5.7:1 and more */
	--lot-foam: #bfe6ec;       /* headings */
	--lot-link: #7fd3e0;       /* links, 6.5 to 9.7:1 on every ground of the skin */
	--lot-link-hover: #bfeef5;
	--lot-bobber: #dc3c30;     /* the bobber's cap: marks, rules, the current menu item */
	--lot-bobber-btn: #d63a2f; /* button fill: white text 4.66:1 (the mark red gives 4.44:1) */
	--lot-bobber-deep: #b8322a;/* button hover, white text 5.9:1 */
	--lot-float: #f2f7f7;      /* the white half of the bobber */
	--lot-focus: #ff7a6b;      /* focus ring, 4.3:1 and more against every panel */
	--lot-orchid: #e483be;     /* the marks of the chart: limit, notes */
	--lot-sand: #d9c793;       /* the land: theme chips */
	--lot-sand-ink: #2b2410;
	--lot-error: #ff8a7d;
	--lot-display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
	--lot-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	/* An isobath under section titles; the waterline of a card picture; the shore above the footer. */
	--lot-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='10' viewBox='0 0 30 10'%3E%3Cpath d='M0 5q7.5-4.5 15 0t15 0' fill='none' stroke='%233f7f8d' stroke-width='1.4'/%3E%3C/svg%3E");
	--lot-waterline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 24' preserveAspectRatio='none'%3E%3Cpath d='M0 12C60 2 120 22 180 10S280 2 320 12V24H0Z' fill='%230f3440'/%3E%3Cpath d='M0 12C60 2 120 22 180 10S280 2 320 12' fill='none' stroke='%237fd3e0' stroke-opacity='.5' stroke-width='1.5'/%3E%3C/svg%3E");
	--lot-isle-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 18' preserveAspectRatio='none'%3E%3Cpath d='M0 10C40 2 80 2 120 10S200 18 240 10V18H0Z' fill='%230f3440'/%3E%3C/svg%3E");
	--lot-shore: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='22' viewBox='0 0 180 22'%3E%3Cpath d='M0 12C30 4 60 4 90 12S150 20 180 12V22H0Z' fill='%23061a20'/%3E%3Cpath d='M0 12C30 4 60 4 90 12S150 20 180 12' fill='none' stroke='%233f7f8d' stroke-width='1.2'/%3E%3C/svg%3E");
}

html {
	background: var(--lot-night);
	scroll-padding-top: 90px;
}

body {
	background: var(--lot-night);
	color: var(--lot-ink);
	font-size: 17px;
	line-height: 1.55;
}

a {
	color: var(--lot-link);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--lot-link-hover);
}

:focus-visible {
	outline: 3px solid var(--lot-focus);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--lot-display);
	font-weight: 700;
	color: var(--lot-foam);
	letter-spacing: 0.005em;
	line-height: 1.15;
	text-wrap: balance;
}

h1 {
	font-size: clamp(1.85rem, 3.8vw, 2.6rem);
}

h2,
.cgt-section h2 {
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
}

h3 {
	font-size: 1.18rem;
}

::selection {
	background: var(--lot-link);
	color: var(--lot-night);
}

/* ---------- Header ---------- */

.cgt-header {
	background: rgba(12, 45, 55, 0.96);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--lot-line);
}

.cgt-header__inner {
	min-height: 70px;
}

.lot-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--lot-foam);
	text-decoration: none;
}

.lot-brand:hover {
	color: var(--lot-foam);
}

.lot-mark {
	width: 30px;
	height: 36px;
	flex: 0 0 30px;
}

.lot-brand__text {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.lot-brand__name {
	font: 700 1.4rem/1 var(--lot-display);
	color: var(--lot-foam);
	letter-spacing: 0.005em;
}

.lot-brand__tagline {
	font: italic 500 0.82rem/1.2 var(--lot-display);
	color: var(--lot-link);
	letter-spacing: 0.02em;
}

.cgt-nav a {
	margin: 0 8px;
	padding: 8px 1px;
	border-radius: 0;
	border-bottom: 2px solid transparent;
	color: var(--lot-ink);
	font-weight: 600;
	font-size: 0.96rem;
}

.cgt-nav a:hover {
	background: none;
	color: var(--lot-link);
	border-bottom-color: var(--lot-edge);
}

.cgt-nav .current-menu-item > a,
.cgt-nav .current-menu-ancestor > a,
.cgt-nav a[aria-current="page"] {
	color: var(--lot-ink);
	border-bottom-color: var(--lot-bobber);
}

.cgt-header__toggle {
	border: 1.5px solid var(--lot-edge);
	border-radius: 10px;
	background: var(--lot-panel);
	color: var(--lot-ink);
}

.cgt-header__toggle-bars,
.cgt-header__toggle-bars::before,
.cgt-header__toggle-bars::after {
	background: var(--lot-foam);
}

/* ---------- Buttons, links of sections, chips, badges ---------- */

.cgt-button {
	background: var(--lot-bobber-btn);
	color: #fff;
	border-radius: 999px;
	padding: 12px 20px;
	font: 700 0.95rem/1.1 var(--cgt-font);
	letter-spacing: 0.01em;
	text-decoration: none;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.cgt-button:hover {
	background: var(--lot-bobber-deep);
	color: #fff;
	filter: none;
}

.lot-button--line,
.lot-button--line:hover {
	background: transparent;
	color: var(--lot-ink);
	box-shadow: inset 0 0 0 1.5px var(--lot-ink);
}

.lot-button--line:hover {
	background: rgba(227, 240, 239, 0.08);
	color: #fff;
}

.cgt-section__more {
	border: 1.5px solid var(--lot-edge);
	background: transparent;
	color: var(--lot-link);
	font-weight: 600;
	font-size: 0.86rem;
}

.cgt-section__more:hover {
	border-color: var(--lot-foam);
	color: var(--lot-link-hover);
}

.cgt-chip {
	background: var(--lot-panel-2);
	border-color: var(--lot-edge);
	color: var(--lot-ink);
}

.cgt-chip:hover {
	border-color: var(--lot-foam);
	color: #fff;
}

.cgt-chip__x {
	color: var(--lot-orchid);
}

/* Mechanics and features: water chips. Themes (their links run under /themes/): sand chips, the land. */
.cgt-tag {
	background: var(--lot-shallow);
	border-color: var(--lot-shallow);
	color: var(--lot-foam);
	font-weight: 600;
}

.cgt-tag:hover {
	border-color: var(--lot-foam);
	color: #fff;
}

.cgt-tag[href*="/themes/"],
.cgt-tag[href*="/theme/"] {
	background: var(--lot-sand);
	border-color: var(--lot-sand);
	color: var(--lot-sand-ink);
}

.cgt-tag[href*="/themes/"]:hover,
.cgt-tag[href*="/theme/"]:hover {
	border-color: #fff;
	color: #000;
}

.cgt-badge {
	background: var(--lot-panel-2);
	color: var(--lot-ink);
	border: 1px solid var(--lot-edge);
	border-radius: 999px;
	padding: 5px 12px;
	font: 600 0.8rem/1.2 var(--lot-mono);
	font-variant-numeric: tabular-nums;
}

.cgt-badge--soft {
	background: var(--lot-sand);
	border-color: var(--lot-sand);
	color: var(--lot-sand-ink);
}

.cgt-badge--accent {
	background: var(--lot-bobber-btn);
	border-color: var(--lot-bobber-btn);
	color: #fff;
}

.cgt-badge--upcoming {
	background: var(--lot-orchid);
	border-color: var(--lot-orchid);
	color: var(--lot-night);
}

/* ---------- Sections ---------- */

.lot-waters {
	padding-top: 6px;
}

.cgt-section {
	margin: 38px 0;
}

.cgt-section__head {
	padding-bottom: 12px;
	margin-bottom: 18px;
	background: var(--lot-wave) repeat-x left bottom / 30px 10px;
}

.cgt-section__head h2 {
	margin: 0;
}

.cgt-section__subtitle {
	color: var(--lot-ink-soft);
}

/* ---------- Front page: hero and depth chart ---------- */

.lot-hero {
	padding: 34px 0 30px;
	background: radial-gradient(110% 85% at 88% 0%, rgba(27, 88, 102, 0.65), transparent 62%), var(--lot-night);
	border-bottom: 1px solid var(--lot-line);
}

.lot-hero__inner {
	display: grid;
	gap: 16px;
}

.lot-kicker {
	margin: 0;
	font: italic 500 1.02rem/1.3 var(--lot-display);
	color: var(--lot-orchid);
	letter-spacing: 0.02em;
}

.lot-hero__title {
	margin: 0;
	max-width: 20ch;
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	line-height: 1.06;
}

.lot-hero__title em {
	font-style: italic;
	font-weight: 600;
	color: var(--lot-link);
}

.lot-hero__sub {
	margin: 0;
	max-width: 62ch;
	color: var(--lot-ink-soft);
	font-size: 1.08rem;
}

.lot-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.lot-search {
	flex: 1 1 300px;
	max-width: 580px;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 5px 5px 18px;
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 999px;
}

.lot-search:focus-within {
	border-color: var(--lot-foam);
	box-shadow: 0 0 0 2px var(--lot-focus);
}

.lot-search input {
	flex: 1;
	min-width: 0;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: var(--lot-ink);
	font: 400 1rem var(--cgt-font);
}

.lot-search input::placeholder {
	color: #8fb3b8;
	opacity: 1;
}

.lot-search input:focus,
.lot-search input:focus-visible {
	outline: none;
}

.lot-search .cgt-button {
	padding: 11px 22px;
}

.lot-chart {
	margin: 8px 0 0;
	background: var(--lot-chart);
	border: 1.5px solid var(--lot-edge);
	border-radius: 14px;
	overflow: hidden;
}

/* The chart keeps its proportions; on a phone it scrolls sideways inside its frame, never the page. */
.lot-chart__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: var(--lot-edge) transparent;
}

.lot-chart__svg {
	display: block;
	width: 100%;
	min-width: 640px;
	height: auto;
}

.lot-chart__isobath {
	fill: none;
	stroke: #4a96a6;
	stroke-width: 1.2;
}

.lot-chart__depth {
	font: italic 500 14px var(--lot-display);
	fill: #a9dde6;
}

.lot-chart__shore {
	fill: var(--lot-chart);
}

.lot-chart__surface,
.lot-chart__tick {
	stroke: var(--lot-foam);
	stroke-width: 1.5;
}

.lot-chart__year {
	font: 400 13px var(--lot-mono);
	fill: #cfe6e8;
}

.lot-chart__label {
	font: italic 500 15px var(--lot-display);
	fill: var(--lot-orchid);
}

.lot-catch__line {
	stroke: var(--lot-ink-soft);
	stroke-width: 0.6;
	stroke-dasharray: 2 3;
	opacity: 0.45;
}

.lot-catch__float {
	fill: var(--lot-float);
	stroke: var(--lot-abyss);
	stroke-width: 1.4;
}

.lot-catch__cap {
	fill: var(--lot-bobber);
}

.lot-catch__ring {
	fill: transparent;
	stroke: transparent;
	stroke-width: 2.5;
}

.lot-catch__name {
	font: 600 13.5px var(--cgt-font);
	fill: var(--lot-ink);
	stroke: var(--lot-night);
	stroke-width: 3.5px;
	stroke-linejoin: round;
	paint-order: stroke;
}

.lot-catch--record .lot-catch__name {
	fill: #fff;
}

.lot-catch:focus {
	outline: none;
}

.lot-catch:hover .lot-catch__ring,
.lot-catch:focus-visible .lot-catch__ring {
	stroke: var(--lot-focus);
}

.lot-catch:hover .lot-catch__line,
.lot-catch:focus-visible .lot-catch__line {
	stroke: var(--lot-foam);
	opacity: 1;
}

.lot-chart__cap {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 6px 18px;
	padding: 10px 14px 12px;
	border-top: 1px solid var(--lot-line);
	color: var(--lot-ink-soft);
	font-size: 0.92rem;
}

.lot-chart__cap b {
	color: var(--lot-orchid);
	font-weight: 600;
}

.lot-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
}

.lot-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 400 0.8rem/1.3 var(--lot-mono);
}

.lot-legend i {
	display: inline-block;
	width: 16px;
	height: 10px;
	border: 1px solid var(--lot-edge);
	border-radius: 2px;
}

.lot-chart__off {
	flex-basis: 100%;
}

.lot-chart__hint {
	display: none;
	flex-basis: 100%;
	font: italic 500 0.88rem/1.3 var(--lot-display);
	color: var(--lot-link);
}

@media (max-width: 700px) {
	.lot-chart__hint {
		display: block;
	}
}

/* ---------- Game cards: catch tags (grommet, cut corner, the limit in orchid) ---------- */

.cgt-card {
	position: relative;
	container-type: inline-size;
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 16px 16px 16px 46px;
	box-shadow: var(--cgt-shadow);
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.cgt-card:hover {
	transform: rotate(-1.2deg) translateY(-2px);
	border-color: var(--lot-foam);
}

.cgt-card:focus-within {
	border-color: var(--lot-foam);
}

/* The grommet: a hole with a brass ring, where the tag hangs on its string. */
.cgt-card::after {
	content: "";
	position: absolute;
	left: 17px;
	bottom: 20px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--lot-night);
	border: 1.5px solid var(--lot-edge);
	box-shadow: 0 0 0 4px var(--lot-sand), inset 0 2px 3px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

.cgt-card__media,
.cgt-pubcard__thumb {
	background: var(--lot-chart);
	text-decoration: none;
}

/* The waterline. Its height follows the card width (the card is the size container): the game pictures
   (logo.webp, кит/tools/media_build.py) keep a band of water 4.5% of the card width high under the logo,
   and the wave stays inside it, so no lettering on the bottom edge of a studio tile goes under it. */
.cgt-card__media::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 12px;
	height: 4.4cqw;
	background: var(--lot-waterline) no-repeat center bottom / 100% 100%;
	pointer-events: none;
}

.cgt-card__placeholder {
	color: rgba(191, 230, 236, 0.4);
	font-family: var(--lot-display);
}

/* "Demo": a small bobber on a dark float. */
.cgt-card__badge {
	top: 10px;
	right: 10px;
	z-index: 1;
	padding: 5px 9px 5px 22px;
	background: rgba(6, 26, 32, 0.88);
	border: 1px solid var(--lot-edge);
	border-radius: 999px;
	color: var(--lot-foam);
	font: 600 0.66rem/1 var(--lot-mono);
	letter-spacing: 0.08em;
}

.cgt-card__badge::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4.5px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--lot-bobber) 0 50%, var(--lot-float) 50% 100%);
}

.cgt-card__badge--upcoming {
	right: auto;
	left: 10px;
	padding-left: 9px;
	background: var(--lot-orchid);
	border-color: var(--lot-orchid);
	color: var(--lot-night);
}

.cgt-card__badge--upcoming::before {
	content: none;
}

.cgt-card__body {
	padding: 12px 14px 14px;
	gap: 8px;
}

.cgt-card__title {
	font: 700 1.14rem/1.2 var(--lot-display);
}

.cgt-card__title a {
	color: var(--lot-foam);
	text-decoration: none;
}

.cgt-card__title a:hover {
	color: var(--lot-link-hover);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.cgt-card__provider {
	margin: -2px 0 0;
	font: italic 500 0.86rem/1.2 var(--lot-display);
	color: var(--lot-ink-soft);
}

.cgt-card__stats {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 0;
	margin: 2px -14px 0;
	border-top: 1px dashed var(--lot-line);
	border-bottom: 1px dashed var(--lot-line);
	font-size: 1rem;
}

.cgt-card__stats div {
	display: block;
	min-width: 0;
	padding: 8px 8px 9px 14px;
}

.cgt-card__stats div + div {
	padding-left: 10px;
	border-left: 1px dashed var(--lot-line);
}

.cgt-card__stats dt {
	font: italic 500 0.8rem/1.2 var(--lot-display);
	color: var(--lot-ink-soft);
}

.cgt-card__stats dd {
	margin: 3px 0 0;
	font: 600 0.88rem/1.2 var(--lot-mono);
	font-variant-numeric: tabular-nums;
	color: var(--lot-ink);
	overflow-wrap: anywhere;
}

/* The parent prints RTP, Volatility, Max Win in that order: the third is the limit, in orchid.
   With one of the three missing the third cell does not exist and nothing is marked. */
.cgt-card__stats div:nth-child(3) dd {
	color: var(--lot-orchid);
}

/* Narrow tags (two a row on a phone): the figures stack in rows. */
@container (max-width: 250px) {
	.cgt-card__stats {
		grid-auto-flow: row;
	}

	.cgt-card__stats div {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 8px;
		padding: 5px 12px;
	}

	.cgt-card__stats div + div {
		padding-left: 12px;
		border-left: 0;
		border-top: 1px dashed var(--lot-line);
	}

	.cgt-card__stats dd {
		margin: 0;
		text-align: right;
	}
}

.cgt-card__compare {
	align-self: flex-end;
	margin-top: auto;
	padding: 7px 12px;
	border: 1.5px solid var(--lot-edge);
	border-radius: 999px;
	background: transparent;
	color: var(--lot-link);
	font: 600 0.8rem/1.1 var(--cgt-font);
	letter-spacing: 0.02em;
}

.cgt-card__compare:hover {
	border-color: var(--lot-foam);
	color: var(--lot-link-hover);
}

.cgt-card__compare.is-active,
.cgt-card__compare[aria-pressed="true"] {
	background: var(--lot-link);
	border-color: var(--lot-link);
	color: var(--lot-night);
}

@media (min-width: 769px) {
	.cgt-grid {
		gap: 20px;
	}
}

/* Game grids on the front page and under a review: 4 a row on wide screens, so 12 and 8 cards close their rows. */
@media (min-width: 900px) {
	.home .cgt-grid,
	#related .cgt-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* ---------- Front page: themes (shore and buoy), series (chart cartouche), tiles ---------- */

.lot-isles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lot-isle__link {
	display: grid;
	grid-template-rows: auto 1fr;
	height: 100%;
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 16px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.lot-isle__link:hover {
	transform: translateY(-2px);
	border-color: var(--lot-foam);
}

.lot-isle__shore {
	position: relative;
	height: 92px;
	display: grid;
	place-items: center;
	padding-bottom: 8px;
	background: linear-gradient(160deg, #e4d4a2, #b7a46b);
}

.lot-isle--fishing .lot-isle__shore {
	background: linear-gradient(180deg, #1f6170, #103c48);
}

.lot-isle__shore::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 16px;
	background: var(--lot-isle-wave) no-repeat center bottom / 100% 100%;
}

.lot-isle__buoy {
	position: relative;
	z-index: 1;
	width: 62px;
	height: 62px;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 50%;
	background: var(--lot-float);
	border: 3px solid var(--lot-night);
	box-shadow: 0 0 0 2px var(--lot-sand), 0 8px 16px -8px rgba(0, 0, 0, 0.7);
}

.lot-isle__buoy img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.3);
}

.lot-isle__initial {
	font: italic 600 1.7rem/1 var(--lot-display);
	color: var(--lot-night);
}

.lot-isle__body {
	display: grid;
	align-content: start;
	gap: 6px;
	padding: 10px 16px 16px;
}

.lot-isle__name {
	font: 700 1.3rem/1.1 var(--lot-display);
	color: var(--lot-foam);
}

.lot-isle__text {
	color: var(--lot-ink-soft);
	font-size: 0.93rem;
	line-height: 1.45;
}

.lot-charts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lot-chartcard__link {
	position: relative;
	display: grid;
	align-content: center;
	gap: 6px;
	min-height: 126px;
	height: 100%;
	padding: 22px 104px 22px 24px;
	background: linear-gradient(135deg, var(--lot-panel), var(--lot-chart));
	border: 1.5px solid var(--lot-edge);
	outline: 1px solid var(--lot-line);
	outline-offset: -8px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.25s ease;
}

.lot-chartcard__link:hover {
	border-color: var(--lot-foam);
}

.lot-chartcard__link:focus-visible {
	outline: 3px solid var(--lot-focus);
	outline-offset: 2px;
}

.lot-rose {
	position: absolute;
	top: 50%;
	right: 22px;
	width: 66px;
	height: 66px;
	margin-top: -33px;
}

.lot-chartcard__name {
	font: 700 1.5rem/1.1 var(--lot-display);
	color: var(--lot-foam);
}

.lot-chartcard__count {
	font: 600 0.82rem/1.2 var(--lot-mono);
	color: var(--lot-orchid);
}

.lot-chartcard__text {
	max-width: 72ch;
	color: var(--lot-ink-soft);
	font-size: 0.96rem;
	line-height: 1.45;
}

/* Rows of equal tiles, an unfinished last row sits in the middle. 6 a row on wide screens, 3 below. */
.lot-tiles {
	--lot-tiles-row: 3;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lot-tiles > li {
	flex: 0 0 calc((100% - (var(--lot-tiles-row) - 1) * 12px) / var(--lot-tiles-row));
	min-width: 0;
	max-width: 220px;
}

@media (min-width: 1000px) {
	.lot-tiles {
		--lot-tiles-row: 6;
	}
}

.lot-tile {
	display: grid;
	gap: 8px;
	height: 100%;
	padding: 10px 10px 12px;
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 12px 12px 12px 30px;
	color: var(--lot-foam);
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.lot-tile:hover {
	transform: translateY(-2px);
	border-color: var(--lot-foam);
	color: #fff;
}

.lot-tile__icon img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
}

.lot-tile__name {
	font: 600 1rem/1.2 var(--lot-display);
	text-align: center;
	overflow-wrap: anywhere;
}

.lot-tile--plain {
	place-content: center;
	min-height: 70px;
}

.lot-tile--plain .lot-tile__name::before {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	margin: 0 auto 7px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--lot-bobber) 0 50%, var(--lot-float) 50% 100%);
	border: 1.5px solid var(--lot-abyss);
	box-shadow: 0 0 0 1px var(--lot-edge);
}

/* ---------- Entity cards and headers (archives, taxonomy pages) ---------- */

.cgt-archive-header h1 {
	padding-bottom: 16px;
	background: var(--lot-wave) repeat-x left bottom / 30px 10px;
}

.cgt-archive-header .cgt-prose,
.cgt-archive-header .cgt-prose p {
	color: var(--lot-ink-soft);
}

.cgt-entity-card {
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 16px 16px 16px 40px;
	box-shadow: var(--cgt-shadow);
}

.cgt-entity-card__link {
	color: var(--lot-foam);
}

.cgt-entity-card__title {
	font: 700 1.08rem/1.2 var(--lot-display);
}

.cgt-entity-card__excerpt {
	color: var(--lot-ink-soft);
}

.cgt-entity__logo img {
	border: 1.5px solid var(--lot-edge);
	box-shadow: 0 0 0 4px var(--lot-panel);
}

.cgt-statgrid div {
	background: var(--lot-panel);
	border-color: var(--lot-line);
}

.cgt-statgrid dt {
	font: italic 500 0.9rem/1.2 var(--lot-display);
	letter-spacing: 0.01em;
	text-transform: none;
}

.cgt-statgrid dd {
	font-family: var(--lot-mono);
	font-weight: 600;
	color: var(--lot-ink);
}

/* ---------- Game page ---------- */

.cgt-breadcrumbs ol {
	font: italic 500 0.92rem/1.3 var(--lot-display);
	color: var(--lot-ink-soft);
	letter-spacing: 0.01em;
}

.cgt-breadcrumbs li + li::before {
	content: "·";
	margin: 0 7px;
	color: var(--lot-edge);
}

.cgt-breadcrumbs a {
	color: var(--lot-link);
	text-decoration: none;
}

.cgt-breadcrumbs a:hover {
	text-decoration: underline;
}

.cgt-game__header {
	background: linear-gradient(180deg, var(--lot-panel), var(--lot-night));
	border: 1.5px solid var(--lot-edge);
	border-radius: 16px 16px 16px 48px;
}

.cgt-game__backdrop {
	opacity: 0.22;
}

.cgt-game__thumb {
	background: rgba(6, 26, 32, 0.6);
	border: 1.5px solid var(--lot-edge);
}

/* The thumb has no wave, so it leaves out the band of water the game pictures keep for the card's one (6% of the height). */
.cgt-game__thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: 200 / 141;
	object-fit: cover;
	object-position: center top;
}

.cgt-game__intro h1 {
	font-size: clamp(1.45rem, 4vw, 2.5rem);
	color: var(--lot-foam);
}

.cgt-game__byline {
	color: var(--lot-ink-soft);
	font-size: 0.95rem;
}

/* The third badge of the header is the win limit when RTP, volatility and limit are all printed. */
.cgt-game__badges .cgt-badge:nth-child(3):not(.cgt-badge--soft):not(.cgt-badge--accent):not(.cgt-badge--upcoming) {
	background: var(--lot-panel);
	color: var(--lot-orchid);
	border-color: rgba(228, 131, 190, 0.6);
}

.cgt-lead {
	background: var(--lot-panel);
	border-color: var(--lot-line);
	border-left: 4px solid var(--lot-bobber);
	color: var(--lot-ink);
	font-size: 1.14rem;
}

.cgt-eeat {
	background: var(--lot-panel);
	border-color: var(--lot-line);
}

.cgt-eeat__avatar {
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--lot-night), 0 0 0 4px var(--lot-sand);
}

.cgt-eeat__author {
	color: var(--lot-ink);
}

.cgt-eeat__author a {
	color: var(--lot-link);
}

.cgt-eeat__badge {
	color: var(--cgt-good);
}

.cgt-eeat__meta {
	font-family: var(--lot-mono);
	font-size: 0.78rem;
	color: var(--lot-ink-soft);
}

.cgt-eeat__bio {
	color: var(--lot-ink-soft);
}

.cgt-game__sidebar .cgt-section,
.cgt-post__sidebar .cgt-section {
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 14px;
}

.cgt-game__sidebar h2,
.cgt-post__sidebar h2,
.cgt-game__sidebar .cgt-section h2 {
	font-size: 1.18rem;
}

.cgt-verified {
	color: var(--cgt-good);
}

/* Key facts as the legend of the chart: a framed box, italic labels, figures in mono. */
#facts {
	outline: 1px solid var(--lot-line);
	outline-offset: -7px;
}

.cg-facts th,
.cg-facts td {
	padding: 8px 6px;
	border-bottom: 1px dashed var(--lot-line);
	vertical-align: top;
}

.cg-facts th {
	font: italic 500 0.95rem/1.3 var(--lot-display);
	color: var(--lot-ink-soft);
}

.cg-facts td {
	font: 600 0.84rem/1.4 var(--lot-mono);
	font-variant-numeric: tabular-nums;
	color: var(--lot-ink);
}

.cg-facts td a {
	color: var(--lot-link);
}

.cg-facts__note {
	color: var(--lot-ink-soft);
	font-family: var(--cgt-font);
	font-weight: 400;
}

.cgt-dataset-link {
	color: var(--lot-ink-soft);
}

.cgt-dataset-link:hover {
	color: var(--lot-link);
}

/* The demo (widget of the engine, recoloured only): a dark float panel with a bobber over the button. */
.cg-demo {
	background: var(--lot-abyss);
	border: 1.5px solid var(--lot-edge);
	border-radius: 14px;
	overflow: hidden;
}

.cg-demo__poster {
	border-radius: 0;
}

.cg-demo__poster::before {
	background: rgba(6, 26, 32, 0.8);
}

.cg-demo__panel {
	background: var(--lot-abyss);
	border: 1px solid var(--lot-line);
	border-radius: 12px;
}

.cg-demo__panel::after {
	content: "";
	order: -2;
	width: 1.5px;
	height: 16px;
	margin-bottom: -0.85em;
	background: var(--lot-ink);
}

.cg-demo__panel::before {
	content: "";
	order: -1;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--lot-bobber) 0 50%, var(--lot-float) 50% 100%);
	border: 1.5px solid var(--lot-ink);
	animation: lot-bob 3.2s ease-in-out infinite;
}

@keyframes lot-bob {
	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(3px);
	}
}

.cg-demo__play {
	background: var(--lot-bobber-btn);
	color: #fff;
	border-radius: 999px;
	padding: 0.8em 2.1em;
	font: 700 1.05rem/1.1 var(--cgt-font);
	letter-spacing: 0.01em;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.cg-demo__play:hover {
	background: var(--lot-bobber-deep);
}

.cg-demo__note {
	color: var(--lot-ink);
}

.cg-demo__frame iframe {
	border-radius: 0;
}

/* Prose: a bobber before each section title, numbered bobbers for the final checks, margin notes for quotes. */
.cgt-prose {
	font-size: 1.06rem;
}

.cgt-prose h2 {
	margin-top: 1.7em;
}

.cgt-prose h2::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 10px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--lot-bobber) 0 50%, var(--lot-float) 50% 100%);
	border: 1.5px solid var(--lot-abyss);
	box-shadow: 0 0 0 1px var(--lot-edge);
	vertical-align: 2px;
}

.cgt-prose h3 {
	margin-top: 1.4em;
}

.cgt-prose a {
	/* cyan on the night water, 6.5 to 9.7:1 on every ground (the light skins had to darken theirs) */
	color: var(--lot-link);
}

.cgt-prose a:hover {
	color: var(--lot-link-hover);
}

.cgt-prose ul li::marker {
	color: var(--lot-link);
}

.cgt-prose ol {
	display: grid;
	gap: 12px;
	padding-left: 0;
	list-style: none;
	counter-reset: lot-check;
}

.cgt-prose ol > li {
	position: relative;
	min-height: 30px;
	padding-left: 46px;
	counter-increment: lot-check;
}

/* The number sits on the white half of the float, dark on light (17:1). */
.cgt-prose ol > li::before {
	content: counter(lot-check);
	position: absolute;
	left: 0;
	top: -1px;
	width: 31px;
	height: 31px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 3px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--lot-bobber) 0 40%, var(--lot-float) 40% 100%);
	border: 1.5px solid var(--lot-abyss);
	box-shadow: 0 0 0 1px var(--lot-edge);
	color: var(--lot-abyss);
	font: 700 13px/1 var(--lot-mono);
}

.cgt-prose blockquote,
.cgt-prose .wp-block-quote {
	margin: 1.3em 0;
	padding: 12px 16px 12px 18px;
	border-left: 4px solid var(--lot-orchid);
	border-radius: 0 10px 10px 0;
	background: rgba(228, 131, 190, 0.08);
	color: var(--lot-ink);
}

.cgt-prose blockquote p {
	margin: 0 0 6px;
	font: italic 500 1.12rem/1.45 var(--lot-display);
	color: var(--lot-orchid);
}

.cgt-prose blockquote p:last-child {
	margin-bottom: 0;
}

.cgt-prose blockquote cite,
.cgt-prose blockquote footer {
	display: block;
	margin-top: 6px;
	color: var(--lot-ink-soft);
	font: normal 400 0.84rem/1.4 var(--cgt-font);
}

.cgt-prose q {
	font: italic 500 1.05em/1 var(--lot-display);
	color: var(--lot-orchid);
}

.cgt-prose hr {
	height: 10px;
	margin: 2em 0;
	border: 0;
	background: var(--lot-wave) repeat-x left center / 30px 10px;
}

.cgt-prose table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.cgt-prose th,
.cgt-prose td {
	padding: 8px 10px;
	border-bottom: 1px dashed var(--lot-line);
	text-align: left;
}

.cgt-prose th {
	font: italic 500 0.95rem/1.3 var(--lot-display);
	color: var(--lot-ink-soft);
}

.cgt-prose code {
	font-family: var(--lot-mono);
	font-size: 0.9em;
	color: var(--lot-foam);
}

.cgt-faq__item {
	background: var(--lot-panel);
	border-color: var(--lot-line);
}

.cgt-faq__item[open] {
	border-color: var(--lot-edge);
}

.cgt-faq__item summary {
	font: 700 1.06rem/1.35 var(--lot-display);
	color: var(--lot-foam);
}

.cgt-faq__item summary::after {
	color: var(--lot-link);
	font-family: var(--lot-mono);
}

.cgt-faq__item[open] summary::after {
	color: var(--lot-orchid);
}

.cgt-faq__answer {
	color: var(--lot-ink);
}

.cgt-screens figcaption {
	font: italic 500 0.9rem/1.3 var(--lot-display);
	color: var(--lot-ink-soft);
}

/* Search block in the game sidebar (core block, grey button by default). */
.wp-block-search__label {
	font: 700 1.18rem/1.2 var(--lot-display);
	color: var(--lot-foam);
}

.wp-block-search__inside-wrapper {
	gap: 8px;
}

.wp-block-search .wp-block-search__input {
	min-width: 0;
	padding: 10px 16px;
	border: 1.5px solid var(--lot-edge);
	border-radius: 999px;
	background: var(--lot-night);
	color: var(--lot-ink);
	font: inherit;
}

.wp-block-search .wp-block-search__input:focus {
	outline: 2px solid var(--lot-focus);
	outline-offset: 1px;
}

.wp-block-search .wp-block-search__button {
	margin-left: 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--lot-bobber-btn);
	color: #fff;
	font: 700 0.92rem/1.1 var(--cgt-font);
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

.wp-block-search .wp-block-search__button:hover {
	background: var(--lot-bobber-deep);
}

/* ---------- Filters (games archive) ---------- */

.cgt-filters {
	top: 90px;
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 14px;
}

.cgt-filters__group label,
.cgt-filters__group legend {
	font: italic 500 0.95rem/1.3 var(--lot-display);
	color: var(--lot-ink-soft);
}

.cgt-filters__checks label {
	font: 400 0.95rem/1.3 var(--cgt-font);
	color: var(--lot-ink);
}

.cgt-filters input[type="search"],
.cgt-filters input[type="number"],
.cgt-filters select {
	background: var(--lot-night);
	border: 1px solid var(--lot-line);
	border-radius: 8px;
	color: var(--lot-ink);
}

.cgt-filters input::placeholder {
	color: #8fb3b8;
	opacity: 1;
}

.cgt-filters input:focus,
.cgt-filters select:focus {
	border-color: var(--lot-edge);
	outline: 2px solid var(--lot-focus);
	outline-offset: 1px;
}

.cgt-filters input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--lot-bobber-btn);
}

.cgt-filters__range span {
	color: var(--lot-ink-soft);
}

.cgt-result-count {
	font-family: var(--lot-mono);
	font-size: 0.84rem;
	color: var(--lot-ink-soft);
}

/* ---------- Author ---------- */

.cgt-author-hero {
	background: linear-gradient(180deg, var(--lot-panel), var(--lot-night));
	border: 1.5px solid var(--lot-edge);
	border-radius: 16px 16px 16px 48px;
}

.cgt-author-hero__avatar img {
	box-shadow: 0 0 0 3px var(--lot-night), 0 0 0 6px var(--lot-sand);
}

.cgt-author-hero__eyebrow {
	margin: 0 0 4px;
	font: italic 500 1rem/1.2 var(--lot-display);
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--lot-orchid);
}

.cgt-author-hero__excerpt {
	color: var(--lot-ink-soft);
}

/* Social icons (parent markup): a ring of the card frame, mono glyphs, the bobber on hover. */
.cgt-social-icon {
	width: 38px;
	height: 38px;
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	color: var(--lot-foam);
	font: 600 0.66rem/1 var(--lot-mono);
	transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.cgt-social-icon:hover,
.cgt-social-icon:focus-visible {
	background: var(--lot-bobber-btn);
	border-color: var(--lot-bobber-btn);
	color: #fff;
}

@media (max-width: 768px) {
	.cgt-author-hero {
		border-radius: 16px 16px 16px 40px;
	}

	.cgt-author-hero__socials {
		justify-content: center;
		gap: 6px;
	}

	.cgt-social-icon {
		width: 36px;
		height: 36px;
	}
}

.cgt-pubcard {
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	border-radius: 16px 16px 16px 40px;
}

.cgt-pubcard:hover {
	border-color: var(--lot-foam);
}

.cgt-pubcard__type {
	font: italic 500 0.88rem/1.2 var(--lot-display);
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--lot-orchid);
}

.cgt-pubcard__title {
	font: 700 1.12rem/1.25 var(--lot-display);
}

.cgt-pubcard__title a {
	color: var(--lot-foam);
}

.cgt-pubcard__title a:hover {
	color: var(--lot-link-hover);
}

.cgt-pubcard__excerpt {
	color: var(--lot-ink-soft);
}

.cgt-pubcard__date {
	font-family: var(--lot-mono);
	font-size: 0.76rem;
	color: var(--lot-ink-soft);
	opacity: 1;
}

/* ---------- Blog cards and posts (parent markup) ---------- */

.cgt-post-card__title a,
.cgt-post-nav__link {
	color: var(--lot-foam);
}

.cgt-post-card__title,
.cgt-post-nav__title {
	font-family: var(--lot-display);
}

.cgt-post-card__date,
.cgt-post-nav__label {
	font-family: var(--lot-mono);
	color: var(--lot-ink-soft);
}

.cgt-post-nav__link {
	background: var(--lot-panel);
	border-color: var(--lot-edge);
}

/* ---------- Comparison ---------- */

.cgt-compare-table {
	background: var(--lot-panel);
	border: 1.5px solid var(--lot-edge);
	font-variant-numeric: tabular-nums;
}

.cgt-compare-table th,
.cgt-compare-table td {
	border-bottom: 1px dashed var(--lot-line);
}

.cgt-compare-table td {
	font: 600 0.86rem/1.4 var(--lot-mono);
}

.cgt-compare-table tbody th {
	font: italic 500 0.95rem/1.3 var(--lot-display);
	color: var(--lot-ink-soft);
}

.cgt-compare-head__title {
	font-family: var(--lot-display);
	color: var(--lot-foam);
}

.cgt-compare-tray {
	background: var(--lot-abyss);
	border: 1.5px solid var(--lot-edge);
	color: var(--lot-ink);
	box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.9);
}

.cgt-compare-tray__go {
	color: var(--lot-link);
}

.cgt-compare-tray__clear {
	color: var(--lot-ink-soft);
}

/* ---------- Forms (Contact Form 7): bobber submit, readable errors on dark ---------- */

.wpcf7 .wpcf7-submit {
	background: var(--lot-bobber-btn);
	color: #fff;
	border-radius: 999px;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}

.wpcf7 .wpcf7-submit:hover {
	background: var(--lot-bobber-deep);
	filter: none;
}

.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-email,
.wpcf7 .wpcf7-textarea,
.wpcf7 .wpcf7-select,
.wpcf7 .wpcf7-number,
.wpcf7 .wpcf7-date {
	background: var(--lot-night);
	border-color: var(--lot-edge);
}

.wpcf7 .wpcf7-not-valid-tip {
	color: var(--lot-error);
}

.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
	border-color: var(--lot-error);
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	border-color: var(--lot-error) !important;
	color: var(--lot-error);
}

/* ---------- Footer: the deep water under the shoreline ---------- */

.cgt-footer {
	position: relative;
	margin-top: 70px;
	background: var(--lot-abyss);
	border-top: 0;
	color: var(--lot-ink);
}

.cgt-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -21px;
	height: 22px;
	background: var(--lot-shore) repeat-x left bottom / 180px 22px;
	pointer-events: none;
}

.cgt-footer__inner {
	padding-top: 34px;
	padding-bottom: 32px;
}

.cgt-footer__menus {
	padding-bottom: 22px;
	border-bottom: 1px dashed var(--lot-line);
}

.cgt-footer__menu-title {
	font: italic 600 1.08rem/1.2 var(--lot-display);
	letter-spacing: 0.01em;
	text-transform: none;
	color: var(--lot-link);
}

.cgt-footer__nav a {
	color: var(--lot-ink);
	font-size: 0.96rem;
	text-decoration: none;
}

.cgt-footer__nav a:hover {
	color: var(--lot-link);
	text-decoration: underline;
}

.cgt-footer__note {
	max-width: 76ch;
	color: var(--lot-ink-soft);
	font-size: 0.9rem;
}

.cgt-footer__copy {
	color: var(--lot-ink-soft);
	opacity: 1;
	font: 400 0.78rem/1.4 var(--lot-mono);
	letter-spacing: 0.03em;
}

.cgt-footer__copy::before {
	content: "";
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 8px;
	border-radius: 50%;
	background: linear-gradient(180deg, var(--lot-bobber) 0 50%, var(--lot-float) 50% 100%);
	vertical-align: -1px;
}

/* ---------- Pagination, misc ---------- */

.nav-links .page-numbers {
	background: var(--lot-panel);
	border-color: var(--lot-edge);
	border-radius: 999px;
	color: var(--lot-ink);
	font-family: var(--lot-mono);
}

.nav-links a.page-numbers:hover {
	border-color: var(--lot-foam);
	color: #fff;
}

.nav-links .page-numbers.current {
	background: var(--lot-link);
	border-color: var(--lot-link);
	color: var(--lot-night);
}

.cgt-empty,
.cgt-notice {
	background: var(--lot-panel);
	border-color: var(--lot-edge);
	color: var(--lot-ink-soft);
}

/* ---------- Small screens ---------- */

@media (max-width: 768px) {
	.cgt-header__nav {
		background: var(--lot-header);
		border-bottom: 1px solid var(--lot-line);
		box-shadow: 0 18px 30px -20px rgba(0, 0, 0, 0.9);
	}

	.cgt-nav a {
		margin: 0;
		padding: 11px 2px;
		border-bottom: 1px dashed var(--lot-line);
	}

	.cgt-nav .current-menu-item > a,
	.cgt-nav .current-menu-ancestor > a,
	.cgt-nav a[aria-current="page"] {
		border-bottom: 2px solid var(--lot-bobber);
	}

	.cgt-filters-toggle {
		background: var(--lot-panel);
		border: 1.5px solid var(--lot-edge);
		color: var(--lot-ink);
	}

	.cgt-game__header {
		border-radius: 14px 14px 14px 36px;
	}

	.cgt-card {
		border-radius: 14px 14px 14px 38px;
	}

	.cgt-card::after {
		left: 14px;
		bottom: 18px;
		width: 15px;
		height: 15px;
		box-shadow: 0 0 0 3px var(--lot-sand), inset 0 2px 3px rgba(0, 0, 0, 0.55);
	}

	.cgt-card__body {
		padding: 10px 12px 12px;
	}

	.cgt-card__stats {
		margin-left: -12px;
		margin-right: -12px;
	}

	.cgt-card__title {
		font-size: 1.02rem;
	}
}

@media (max-width: 600px) {
	/* the parent's smaller lead on phones, which the size above would otherwise override */
	.cgt-lead {
		font-size: 1.04rem;
	}

	/* themes two a row on a phone, with a lower shore */
	.lot-isles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.lot-isle__shore {
		height: 70px;
	}

	.lot-isle__buoy {
		width: 48px;
		height: 48px;
	}

	.lot-isle__initial {
		font-size: 1.35rem;
	}

	.lot-isle__body {
		padding: 8px 12px 12px;
	}

	.lot-isle__name {
		font-size: 1.08rem;
	}
}

@media (max-width: 480px) {
	.lot-brand__name {
		font-size: 1.22rem;
	}

	.lot-brand__tagline {
		font-size: 0.76rem;
	}

	.lot-hero {
		padding-top: 24px;
	}

	.lot-search {
		flex-basis: 100%;
	}

	.lot-chartcard__link {
		padding-right: 22px;
	}

	.lot-rose {
		display: none;
	}

	.lot-tile {
		padding: 8px 8px 10px;
	}

	.lot-tile__name {
		font-size: 0.9rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cgt-card:hover,
	.lot-isle__link:hover,
	.lot-tile:hover {
		transform: none;
	}

	.cg-demo__panel::before {
		animation: none;
	}
}

/* ---------- Engine fixes carried over from Pantheon 0.1.4 and PAR 0.1.2 (audit of 14 October 2026) ---------- */

/* Narrow phones (320 px): the one-column game layout of the parent (1fr) let the demo block push the page
   wider than the screen. minmax(0, 1fr) holds the column to the screen. Pantheon and PAR apply it up to
   600 px; here it covers the whole one-column range of the parent (up to 1024 px), which includes that. */
@media (max-width: 1024px) {
	.cgt-game__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.cgt-game__layout > *,
	.wp-block-search__input {
		min-width: 0;
	}
}

/* The line under Play Demo when the demo window does not open (assets/js/skin-fixes.js). */
.lot-demo-fail {
	margin-top: 0.5em;
	font-weight: 700;
	color: var(--lot-orchid);
}

/* 0.1.3 (ChatGPT audits of 7 November 2026, as Aviashow 0.1.2): the line while a Play Demo press waits for the widget, the button
   meanwhile, and the hint above a Compare table wider than the screen (assets/js/skin-fixes.js, parts 4 and 5). */
.lot-demo-wait {
	margin-top: 0.5em;
	font-weight: 600;
}

.cg-demo__play[aria-busy="true"] {
	cursor: progress;
}

.lot-compare-hint {
	margin: 0 0 8px;
	color: var(--cgt-ink-soft);
	font-size: 0.8rem;
	font-weight: 600;
}
