/*
 * cixgaming (v4 design) — consolidated, mobile-first components.
 * Tokens follow design/design-tokens.css. Accessibility adjustments to the prototype are noted
 * inline as "a11y:" (replacement greys use --cp-sub; small purple text uses --cp-purple-dark).
 */

/* ======================================================================= tokens */
:root {
	--cp-paper: #fafaf6;
	--cp-surface: #fffefa;
	--cp-ink: #292139;
	--cp-sub: #6b6375;
	--cp-muted: #725b86;          /* purple-tinted labels (5.6:1 on paper) */
	--cp-chip: #71657e;           /* inactive chip text (5.2:1) */
	--cp-body: #514658;           /* article body text (8.5:1) */
	--cp-heading: #493452;
	--cp-purple: #7546e8;
	--cp-purple-dark: #552bb6;
	--cp-lavender: #eee7ff;
	--cp-mint: #dcf7e5;
	--cp-acid: #eafa9d;
	--cp-pink: #f8dce8;
	--cp-line: #e1dce8;
	--cp-line-strong: #d8cde4;
	--cp-world-bg: #eae0ff;
	--cp-world-ink: #624099;
	--cp-world-pop: #c6adef;
	--cp-font-body: 'DM Sans', Arial, sans-serif;
	--cp-font-display: 'Space Grotesk', 'DM Sans', Arial, sans-serif;
	--cp-font-mono: 'IBM Plex Mono', ui-monospace, monospace;
	--cp-content-max: 1180px;
	--cp-header-max: 1240px;
	--cp-gutter: 16px;
	--cp-header-height: 62px;
	--cp-dock-height: 70px;
	--cp-safe-bottom: env(safe-area-inset-bottom, 0px);
	--cp-touch: 44px;
	--cp-thumb: 96px;
	--cp-lead-ratio: 1.9;
	--cp-cover-ratio: 1.8;
	--cp-lead-radius: 10px 10px 3px 10px;
	--cp-row-radius: 7px;
	--cp-control-radius: 7px;
	--cp-focus: 3px solid var(--cp-purple);
	--cp-ease: cubic-bezier(.22, .8, .3, 1);
	--cp-admin-bar: 0px;
	--cp-white: #ffffff;
	--cp-shadow: #e5daef;
	--cp-shadow-strong: #d5c2f4;
	--cp-purple-50: #f8f5ff;
	--cp-purple-100: #f3eefe;
	--cp-purple-200: #ddd0f7;
	--cp-purple-300: #cdbaf6;
	--cp-line-field: #a287be;
}
@media (max-width: 359px) {
	:root { --cp-gutter: 13px; --cp-thumb: 86px; }
}
@media (min-width: 700px) {
	:root { --cp-gutter: 28px; --cp-thumb: 128px; }
}
@media (min-width: 1024px) {
	:root { --cp-header-height: 76px; --cp-thumb: 138px; --cp-lead-ratio: 1.95; }
}
body.admin-bar { --cp-admin-bar: 46px; }
@media (min-width: 783px) {
	body.admin-bar { --cp-admin-bar: 32px; }
}

/* ======================================================================= base */
html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--cp-header-height) + var(--cp-admin-bar) + 12px);
	scroll-padding-bottom: calc(var(--cp-dock-height) + var(--cp-safe-bottom) + 16px); /* focused controls are never hidden behind the dock */
}
@media (min-width: 1024px) {
	html { scroll-padding-bottom: 0; }
}
body.cp-site {
	margin: 0;
	background-color: var(--cp-paper);
	background-image: url('../images/dots-14.svg');
	background-size: 14px 14px;
	color: var(--cp-ink);
	font-family: var(--cp-font-body);
	font-size: 16px;
	line-height: 1.6;
	padding-bottom: calc(var(--cp-dock-height) + 14px + var(--cp-safe-bottom));
	overflow-x: hidden;
}
.cp-site *, .cp-site *::before, .cp-site *::after { box-sizing: border-box; }
:where(.cp-site) img { max-width: 100%; height: auto; }
:where(.cp-site) a { color: var(--cp-purple-dark); }
:where(.cp-site) a:hover { color: var(--cp-purple); }
.cp-site :focus-visible { outline: var(--cp-focus); outline-offset: 3px; border-radius: 4px; }
.cp-site [hidden] { display: none !important; }
.cp-site ::selection { background: var(--cp-acid); color: var(--cp-ink); }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 100000;
	top: 8px; left: 8px; padding: 12px 16px; background: var(--cp-surface); color: var(--cp-purple-dark);
	border: 2px solid var(--cp-purple); border-radius: 7px; font-weight: 700; text-decoration: none;
}
.cp-icon { display: inline-block; flex: 0 0 auto; width: 24px; height: 24px; vertical-align: middle; color: inherit; }
.cp-header-part, .cp-footer-part, .cp-dock-part { display: contents; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* main column */
.cp-main {
	width: 100%;
	max-width: calc(var(--cp-content-max) + 2 * var(--cp-gutter));
	margin: 0 auto;
	padding: 18px var(--cp-gutter) 24px;
}
.cp-main > * + * { margin-block-start: 0; }

/* shared type helpers */
.cp-eyebrow {
	display: flex; align-items: center; gap: 8px; margin: 0;
	font: 500 10.5px/1.5 var(--cp-font-mono); letter-spacing: .9px; text-transform: uppercase; color: var(--cp-muted);
}
.cp-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--cp-purple); flex: 0 0 auto; }
.cp-display {
	font-family: var(--cp-font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
	font-size: clamp(30px, 8.6vw, 36px); margin: 8px 0; color: var(--cp-ink); overflow-wrap: anywhere;
}
.cp-section-title { font: 700 22px/1.2 var(--cp-font-display); letter-spacing: -0.01em; margin: 0 0 6px; color: var(--cp-ink); }
.cp-note { font-size: 16px; color: var(--cp-sub); margin: 14px 0; }
.cp-loading { font-size: 16px; color: var(--cp-sub); margin: 18px 0; }
.cp-text-link {
	display: inline-flex; align-items: center; gap: 7px; min-height: var(--cp-touch); padding: 8px 2px;
	font-size: 16px; font-weight: 600; color: var(--cp-purple-dark); text-decoration: none;
}
.cp-text-link .cp-icon { width: 16px; height: 16px; }
.cp-text-link:hover { text-decoration: underline; }

/* buttons */
.cp-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 46px; padding: 12px 19px; border-radius: var(--cp-control-radius);
	font: 700 16px/1.2 var(--cp-font-body); text-decoration: none; cursor: pointer;
	color: var(--cp-purple-dark); background: var(--cp-white); border: 1px solid var(--cp-purple-200); box-shadow: 2px 3px 0 var(--cp-shadow);
	transition: transform 180ms var(--cp-ease), box-shadow 180ms var(--cp-ease), background-color 180ms;
}
.cp-button .cp-icon { width: 18px; height: 18px; }
.cp-button:hover { color: var(--cp-purple-dark); transform: translate(-1px, -1px); box-shadow: 3px 4px 0 var(--cp-shadow); }
.cp-button--primary { color: var(--cp-white); background: var(--cp-purple); border-color: var(--cp-purple); box-shadow: 3px 4px 0 var(--cp-shadow-strong); }
.cp-button--primary:hover { color: var(--cp-white); background: var(--cp-purple-dark); box-shadow: 4px 5px 0 var(--cp-shadow-strong); }
.cp-button--light { background: var(--cp-surface); }
.cp-button--small { min-height: var(--cp-touch); padding: 10px 14px; font-size: 16px; box-shadow: none; }
.cp-button.is-on { background: var(--cp-lavender); border-color: var(--cp-purple-300); color: var(--cp-purple-dark); }
.cp-button--primary.is-on { background: var(--cp-purple-dark); color: var(--cp-white); }
.cp-icon-button {
	display: inline-flex; align-items: center; justify-content: center; position: relative;
	width: var(--cp-touch); height: var(--cp-touch); border-radius: 8px; color: #5b426f;
	background: transparent; border: 0; cursor: pointer; text-decoration: none;
}
.cp-icon-button:hover { background: var(--cp-lavender); color: var(--cp-purple-dark); }

/* ======================================================================= header */
.cp-header {
	position: sticky; top: var(--cp-admin-bar); z-index: 50;
	background: rgba(250, 250, 246, .96);
	-webkit-backdrop-filter: saturate(1.2) blur(6px); backdrop-filter: saturate(1.2) blur(6px);
	border-bottom: 1px solid var(--cp-line);
}
.cp-header__inner {
	display: flex; align-items: center; gap: 8px; height: var(--cp-header-height);
	max-width: var(--cp-header-max); margin: 0 auto; padding: 0 14px;
}
.cp-brand {
	display: inline-flex; align-items: center; gap: 8px; min-height: var(--cp-touch); min-width: 0;
	color: var(--cp-ink); text-decoration: none; margin-right: auto;
}
.cp-site .cp-brand:hover { color: var(--cp-ink); }
.cp-brand__mark {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: 27px; height: 27px; border-radius: 5px; background: var(--cp-purple); color: var(--cp-white);
	box-shadow: 2px 2px 0 var(--cp-purple-200);
}
.cp-brand__mark .cp-icon { width: 21px; height: 21px; }
.cp-brand__mark--image { background: transparent; box-shadow: none; overflow: hidden; }
.cp-brand__icon { width: 27px; height: 27px; object-fit: cover; border-radius: 5px; }
.cp-brand__name {
	font: 700 22px/1 var(--cp-font-display); letter-spacing: -0.02em; /* text wordmark fallback, used only without assets/brand/logo.svg */
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Purple accent full stop: decoration only, so it is not part of the brand's accessible name. */
.cp-brand__name::after { content: '.'; content: '.' / ''; color: var(--cp-purple); }
.cp-brand__logo { display: block; max-height: 36px; width: auto; }
.cp-header__actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.cp-search-trigger {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-width: var(--cp-touch); height: var(--cp-touch); padding: 10px; border-radius: 8px;
	color: #5b426f; text-decoration: none; font-size: 12px;
}
.cp-search-trigger:hover { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-search-trigger__label { display: none; }
.cp-header__saved { display: none; }
.cp-badge {
	position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--cp-purple); color: var(--cp-white); font: 700 10px/18px var(--cp-font-body); text-align: center;
}
.cp-nav { display: none; }

/* Narrow phones: keep the whole wordmark visible. */
@media (max-width: 359px) {
	.cp-header__inner { padding: 0 8px 0 10px; gap: 4px; }
	.cp-brand { gap: 7px; }
	.cp-brand__name { font-size: 20px; }
	.cp-brand__mark { width: 25px; height: 25px; }
}

/* More menu (details/summary works without JavaScript) */
.cp-menu { position: relative; }
.cp-menu > summary { list-style: none; }
.cp-menu > summary::-webkit-details-marker { display: none; }
.cp-menu__close { display: none; }
.cp-menu[open] .cp-menu__open { display: none; }
.cp-menu[open] .cp-menu__close { display: inline-block; }
.cp-menu[open] > summary { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-menu__panel {
	position: absolute; right: -6px; top: calc(100% + 10px); z-index: 60;
	width: min(320px, calc(100vw - 2 * var(--cp-gutter))); padding: 10px;
	background: var(--cp-surface); border: 1px solid var(--cp-line-strong); border-radius: 10px 3px 10px 10px;
	box-shadow: 4px 6px 0 var(--cp-shadow), 0 18px 40px rgba(52, 32, 75, .10);
}
.cp-menu__heading { margin: 4px 10px 6px; font: 500 10.5px/1.5 var(--cp-font-mono); letter-spacing: .9px; text-transform: uppercase; color: var(--cp-muted); }
.cp-menu__link {
	display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 10px; border-radius: 7px;
	color: var(--cp-ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.cp-menu__link .cp-icon { width: 20px; height: 20px; color: var(--cp-purple); }
.cp-menu__link span { flex: 1; }
.cp-menu__link .cp-menu__chevron { width: 16px; height: 16px; color: var(--cp-sub); }
.cp-menu__link:hover, .cp-menu__link[aria-current="page"] { background: var(--cp-lavender); color: var(--cp-purple-dark); }

/* Menu button (shown by the script) and navigation drawer (modal dialog) */
.cp-menu-button[hidden], .cp-menu[hidden] { display: none; }
.cp-menu-button[aria-expanded="true"] { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-drawer {
	position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
	margin: 0; padding: 0; border: 0; border-left: 1px solid var(--cp-line-strong); overflow: hidden;
	background: var(--cp-surface); color: var(--cp-ink); box-shadow: -18px 0 48px rgba(41, 33, 57, .16);
}
.cp-drawer::backdrop { background: rgba(41, 33, 57, .42); }
.cp-drawer[open] { animation: cp-drawer-in 180ms var(--cp-ease); }
@keyframes cp-drawer-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.cp-drawer__inner {
	height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	padding: env(safe-area-inset-top, 0px) max(var(--cp-gutter), env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) var(--cp-gutter);
}
.cp-drawer__head {
	position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: var(--cp-header-height); margin: 0 calc(-1 * var(--cp-gutter)) 6px; padding: 0 calc(var(--cp-gutter) - 6px) 0 var(--cp-gutter);
	background: var(--cp-surface); border-bottom: 1px solid var(--cp-line);
}
.cp-drawer__title { margin: 0; font: 700 20px/1.2 var(--cp-font-display); letter-spacing: -0.01em; }
.cp-drawer__heading { margin: 18px 6px 6px; font: 500 11px/1.5 var(--cp-font-mono); letter-spacing: .9px; text-transform: uppercase; color: var(--cp-muted); }
.cp-drawer ul { list-style: none; margin: 0; padding: 0; }
.cp-drawer__toggle, .cp-drawer__link {
	display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 8px 8px; margin: 0;
	border: 0; border-radius: 9px; background: transparent; color: var(--cp-ink); cursor: pointer;
	font: 700 18px/1.25 var(--cp-font-display); letter-spacing: -0.01em; text-align: left; text-decoration: none;
}
.cp-drawer__toggle:hover, .cp-drawer__link:hover { background: var(--cp-purple-50); }
.cp-drawer__toggle[aria-expanded="true"] { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-drawer__icon {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px;
	border-radius: 9px; background: var(--cp-lavender); color: var(--cp-purple);
}
.cp-drawer__toggle[aria-expanded="true"] .cp-drawer__icon { background: var(--cp-surface); }
.cp-drawer__icon .cp-icon { width: 20px; height: 20px; }
.cp-drawer__label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cp-drawer__chevron { flex: 0 0 auto; width: 18px; height: 18px; color: var(--cp-sub); transform: rotate(90deg); transition: transform 160ms var(--cp-ease); }
.cp-drawer__toggle[aria-expanded="true"] .cp-drawer__chevron { transform: rotate(-90deg); color: var(--cp-purple-dark); }
.cp-drawer__chevron--go { transform: none; }
.cp-drawer__children { margin: 4px 0 10px; padding: 0 0 0 52px !important; }
.cp-drawer__children.is-entering { animation: cp-reveal 160ms var(--cp-ease); }
@keyframes cp-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cp-drawer__all, .cp-drawer__article {
	display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 10px; border-radius: 7px;
	color: var(--cp-ink); font: 500 16px/1.35 var(--cp-font-body); text-decoration: none; overflow-wrap: anywhere;
}
.cp-drawer__all { font-weight: 700; color: var(--cp-purple-dark); }
.cp-drawer__all .cp-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.cp-drawer__article { border-left: 2px solid var(--cp-line); border-radius: 0 7px 7px 0; }
.cp-drawer__all:hover, .cp-drawer__article:hover { background: var(--cp-purple-50); text-decoration: underline; text-underline-offset: 3px; }
.cp-drawer a[aria-current="page"] { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-drawer__support { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 20px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid var(--cp-line); }
.cp-drawer__support a { display: inline-flex; align-items: center; min-height: var(--cp-touch); padding: 0 8px; border-radius: 7px; color: var(--cp-purple-dark); font-weight: 600; font-size: 16px; }
html.cp-drawer-open, html.cp-drawer-open body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
	.cp-drawer[open], .cp-drawer__children.is-entering { animation: none; }
	.cp-drawer__chevron { transition: none; }
}

/* Brand logo: the SVG from assets/brand/ sized by width; the text wordmark is only a fallback. */
.cp-brand__logo--svg { width: 157px; height: auto; max-height: none; max-width: 52vw; aspect-ratio: 880 / 152; } /* folded-familiar lockup: about 27 px tall */
@media (min-width: 1024px) { .cp-brand__logo--svg { width: 170px; } }

/* Search dialog */
.cp-search-dialog {
	width: min(560px, calc(100vw - 2 * var(--cp-gutter))); margin: 12vh auto auto; padding: 0;
	border: 1px solid var(--cp-line-strong); border-radius: 12px 4px 12px 12px; background: var(--cp-surface);
	box-shadow: 5px 7px 0 var(--cp-shadow), 0 30px 60px rgba(41, 33, 57, .22); color: var(--cp-ink);
}
.cp-search-dialog::backdrop { background: rgba(41, 33, 57, .34); }
.cp-search-dialog__form { padding: 18px; }
.cp-search-dialog__title { margin: 0 0 12px; font: 700 20px/1.2 var(--cp-font-display); }
.cp-search-dialog__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.cp-search-field {
	display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px;
	background: var(--cp-white); border: 1px solid var(--cp-line-strong); border-radius: 8px; color: #5b426f;
}
.cp-search-field:focus-within { outline: var(--cp-focus); outline-offset: 2px; }
.cp-search-field input {
	flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; outline: none;
	font: 400 16px/1.4 var(--cp-font-body); color: var(--cp-ink);
}

/* ======================================================================= dock */
.cp-dock {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px;
	height: calc(var(--cp-dock-height) + var(--cp-safe-bottom));
	padding: 5px 8px calc(5px + var(--cp-safe-bottom));
	background: rgba(255, 254, 250, .96); border-top: 1px solid var(--cp-shadow);
	box-shadow: 0 -5px 24px rgba(52, 32, 75, .03);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cp-dock__link {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	min-height: var(--cp-touch); padding: 5px 2px; border-radius: 9px;
	color: var(--cp-sub); text-decoration: none; font: 600 11px/1.2 var(--cp-font-body);
}
.cp-dock__icon .cp-icon { width: 22px; height: 22px; }
.cp-dock__link[aria-current="page"] { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-dock__link[aria-current="page"]::before {
	content: ''; position: absolute; top: -6px; left: 50%; width: 18px; height: 3px; margin-left: -9px;
	border-radius: 0 0 3px 3px; background: var(--cp-purple);
}
.cp-dock__link:hover { color: var(--cp-purple-dark); }
.cp-dock__link:focus-visible { outline-offset: -3px; }

/* ======================================================================= intro */
.cp-intro { position: relative; padding: 1px 54px 18px 0; margin: 0 0 2px; }
.cp-intro__title {
	margin: 0 0 8px; font: 700 30px/1.12 var(--cp-font-display); letter-spacing: -0.02em; color: var(--cp-ink);
}
/* 0.3.1: the site-name eyebrow sits inside the H1 and keeps the eyebrow look. */
.cp-intro__title .cp-intro__brand { margin: 0 0 8px; }
.cp-intro__line { display: block; }
.cp-intro__highlight { color: var(--cp-purple); }
.cp-intro__text { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--cp-sub); max-width: 34em; }
.cp-sticker {
	position: absolute; top: 18px; right: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 43px; height: 43px; color: #5c487c; background: var(--cp-acid);
	border: 1px solid #d6e58e; border-radius: 8px 3px; box-shadow: 3px 3px 0 #e8e3c8; transform: rotate(4deg);
}
.cp-sticker .cp-icon { width: 24px; height: 24px; }
.cp-sticker__text { display: none; }

.cp-page-intro { position: relative; padding: 1px 0 18px; margin: 0 0 6px; }
.cp-page-intro__text { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--cp-sub); max-width: 38em; }
.cp-page-intro .cp-search-form { margin-top: 16px; }

/* ======================================================================= chips & status */
.cp-chips { position: relative; border-bottom: 1px solid var(--cp-line); margin: 0 calc(-1 * var(--cp-gutter)); }
.cp-chips__scroller {
	display: flex; gap: 3px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
	padding: 8px var(--cp-gutter); scroll-padding-inline: var(--cp-gutter);
}
.cp-chips__scroller::-webkit-scrollbar { display: none; }
.cp-chips::before, .cp-chips::after {
	content: ''; position: absolute; top: 1px; bottom: 1px; width: 28px; pointer-events: none; opacity: 0;
	transition: opacity 180ms; z-index: 1;
}
.cp-chips::before { left: 0; background: linear-gradient(90deg, var(--cp-paper) 30%, rgba(250, 250, 246, 0)); }
.cp-chips::after { right: 0; background: linear-gradient(270deg, var(--cp-paper) 30%, rgba(250, 250, 246, 0)); }
.cp-chips.has-more-start::before, .cp-chips.has-more-end::after { opacity: 1; }
.cp-chip {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	min-height: var(--cp-touch); padding: 10px 12px; border-radius: var(--cp-control-radius);
	font: 600 16px/1.2 var(--cp-font-body); color: var(--cp-chip); text-decoration: none; white-space: nowrap;
	transition: background-color 180ms, color 180ms;
}
.cp-site .cp-chip:hover { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-site .cp-chip[aria-current="page"] { background: var(--cp-purple); color: var(--cp-white); }

.cp-feed-status {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 36px; margin: 10px 0 12px;
}
.cp-count { margin: 0; font-size: 12px; line-height: 1.5; color: var(--cp-sub); }
.cp-following {
	position: relative; display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
	min-height: var(--cp-touch); padding: 7px 10px; border-radius: var(--cp-control-radius);
	font: 600 16px/1.2 var(--cp-font-body); color: #6b4a91; background: var(--cp-purple-100); border: 1px solid #ded2ed;
	text-decoration: none;
}
.cp-following::after { content: ''; position: absolute; inset: -4px -2px; } /* 44px tap area, no taller toolbar */
.cp-following .cp-icon { width: 16px; height: 16px; }
.cp-site .cp-following.is-active { background: var(--cp-purple); border-color: var(--cp-purple); color: var(--cp-white); }
.cp-site .cp-following:hover { color: var(--cp-purple-dark); border-color: var(--cp-purple-300); }
.cp-site .cp-following.is-active:hover { color: var(--cp-white); background: var(--cp-purple-dark); }

/* ======================================================================= labels */
.cp-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 9px; color: var(--cp-sub); }
.cp-format {
	display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 3px;
	font: 700 11px/1.2 var(--cp-font-body); letter-spacing: .2px;
	background: var(--cp-world-bg); color: var(--cp-world-ink);
}
.cp-format--guide { background: #e0f2dc; color: #446747; }
.cp-format--pick { background: #fbeccd; color: #83560f; }
.cp-format--story { background: #ece2fb; color: #6749a3; }
.cp-format--culture { background: #f9e3ed; color: #9a4966; }
.cp-format--news { background: #dfedf4; color: #4a6577; } /* a11y: darker ink, 5.1:1 (kit ink #537084 was 4.4:1 at 11px) */
.cp-tag {
	position: relative; font-size: 11.5px; font-weight: 500; line-height: 1.5; color: var(--cp-sub); text-decoration: none;
}
.cp-site a.cp-tag { color: var(--cp-sub); }
.cp-site a.cp-tag:hover { color: var(--cp-purple-dark); text-decoration: underline; }
a.cp-tag::after { content: ''; position: absolute; left: -4px; right: -4px; top: -10px; bottom: -4px; } /* a11y: ≥24px target without covering the title link */
.cp-tag-more { font-size: 11.5px; font-weight: 600; color: var(--cp-sub); }
.cp-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.5; color: var(--cp-sub); }
.cp-meta .cp-icon { width: 13px; height: 13px; }

/* ======================================================================= covers */
.cp-cover {
	position: relative; display: block; overflow: hidden; isolation: isolate; container-type: inline-size;
	width: 100%; height: 100%; background-color: var(--cover-bg, var(--cp-world-bg)); color: var(--cover-ink, var(--cp-world-ink));
	background-image:
		linear-gradient(to right, color-mix(in srgb, var(--cover-ink, var(--cp-world-ink)) 7.5%, transparent) 1px, transparent 1px),
		linear-gradient(to bottom, color-mix(in srgb, var(--cover-ink, var(--cp-world-ink)) 7.5%, transparent) 1px, transparent 1px);
	background-size: 24px 24px;
}
.cp-cover__ring {
	position: absolute; z-index: 0; border-radius: 50%; pointer-events: none;
	width: 68.4%; aspect-ratio: 1; left: 44.3%; top: -45%;
	border: max(5px, 1.4cqw) solid color-mix(in srgb, var(--cover-pop, var(--cp-world-pop)) 45%, transparent);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cover-ink, var(--cp-world-ink)) 23%, transparent);
}
.cp-cover__block {
	position: absolute; z-index: 0; left: 12%; top: 17%; width: 21%; aspect-ratio: 1;
	background: color-mix(in srgb, var(--cover-pop, var(--cp-world-pop)) 50%, transparent);
	clip-path: polygon(0 0, 65% 0, 65% 35%, 100% 35%, 100% 100%, 35% 100%, 35% 65%, 0 65%);
	transform: rotate(-8deg);
}
.cp-cover__mark { position: absolute; z-index: 1; left: 54.7%; top: 12.6%; width: 32%; aspect-ratio: 1; transform: rotate(-9deg); }
.cp-cover__icon { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--cover-ink, var(--cp-world-ink)); }
.cp-cover__icon--shadow { color: var(--cover-pop, var(--cp-world-pop)); opacity: .65; transform: translate(.8%, 1%); }
.cp-cover__label {
	position: absolute; z-index: 2; left: 7%; bottom: 11%; max-width: 78%; margin: 0;
	/* --cover-fit (set per label by checkpoint-core) shrinks long names so they stay on one line below the icon */
	font: 700 clamp(14px, calc(var(--cover-fit, 8) * 1cqw), 62px)/1.05 var(--cp-font-display); letter-spacing: -0.02em;
	color: var(--cover-ink, var(--cp-world-ink)); overflow-wrap: anywhere;
}
.cp-cover__corner { position: absolute; z-index: 2; right: 5%; bottom: 8%; width: 19px; height: 19px; opacity: .6; color: var(--cover-ink, var(--cp-world-ink)); }
.cp-cover--square { background-size: 15px 15px; }
.cp-cover--square .cp-cover__ring { width: 97%; left: 33%; top: -40%; border-width: max(3px, 2.2cqw); }
.cp-cover--square .cp-cover__block { left: 8%; top: 12%; width: 28%; }
.cp-cover--square .cp-cover__mark { left: 18.4%; top: 18.5%; width: 63%; }

/* ======================================================================= media */
.cp-img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.cp-art-off .cp-img { display: none; }

/* ======================================================================= lead */
.cp-lead { position: relative; padding: 0 0 22px; border-bottom: 1px solid var(--cp-line); }
.cp-lead__art { position: relative; }
.cp-lead__media {
	display: block; overflow: hidden; aspect-ratio: var(--cp-lead-ratio); border-radius: var(--cp-lead-radius);
	border: 1px solid var(--cp-line-strong); background: var(--cp-world-bg);
}
.cp-lead__media .cp-img { transition: transform 350ms var(--cp-ease); }
.cp-lead:hover .cp-lead__media .cp-img { transform: scale(1.02); }
.cp-stamp {
	position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 3px;
	font: 500 10px/1.2 var(--cp-font-mono); letter-spacing: .7px; text-transform: uppercase;
	color: #604780; background: rgba(255, 254, 250, .91); border: 1px solid rgba(255, 254, 250, .44);
	pointer-events: none;
}
.cp-lead__copy { padding: 15px 0 0; }
.cp-lead__title { margin: 10px 0; font: 700 22px/1.25 var(--cp-font-display); letter-spacing: -0.015em; overflow-wrap: anywhere; } /* card title: 20–22px on phones */
.cp-lead__title a, .cp-row__title a { color: var(--cp-ink); text-decoration: none; padding-block: 1px; } /* a11y: keeps one-line title links ≥ 24px tall */
.cp-site .cp-lead__title a:hover, .cp-site .cp-row__title a:hover { color: var(--cp-purple-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cp-lead__dek { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--cp-sub); }

/* save buttons */
.cp-save {
	display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
	width: var(--cp-touch); height: var(--cp-touch); border: 0; border-radius: var(--cp-control-radius);
	background: transparent; color: #9b87ad; cursor: pointer; transition: color 180ms, background-color 180ms, transform 180ms var(--cp-ease);
}
.cp-save .cp-icon { width: 19px; height: 19px; }
.cp-save:hover { color: var(--cp-purple-dark); background: var(--cp-lavender); }
.cp-save[aria-pressed="true"] { color: var(--cp-purple); }
.cp-save[aria-pressed="true"] .cp-icon { fill: currentColor; fill-opacity: .25; }
.cp-save:active { transform: scale(.94); }
.cp-save--lead {
	position: absolute; top: 10px; right: 10px; border-radius: 8px; color: #6c4a91;
	background: rgba(255, 254, 250, .95); border: 1px solid var(--cp-line-strong); box-shadow: 0 2px 5px rgba(41, 33, 57, .04);
}

/* ======================================================================= rows */
.cp-row {
	display: grid; grid-template-columns: var(--cp-thumb) minmax(0, 1fr); gap: 15px; align-items: start;
	padding: 20px 0; border-bottom: 1px solid var(--cp-line);
}
.cp-row__media {
	display: block; overflow: hidden; width: var(--cp-thumb); aspect-ratio: 1; margin-top: 2px;
	border-radius: var(--cp-row-radius); border: 1px solid var(--cp-shadow); background: var(--cp-world-bg);
}
.cp-row__copy { min-width: 0; }
.cp-row__title { margin: 7px 0 4px; font: 600 20px/1.25 var(--cp-font-display); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cp-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: var(--cp-touch); }
.cp-row__dek {
	margin: 1px 0 2px; font-size: 16px; line-height: 1.5; color: var(--cp-sub);
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.cp-row__foot .cp-save { margin-right: -5px; }
.cp-row .cp-format { padding: 3px 5px; font-size: 10.5px; }

/* ======================================================================= detour, empty, pager */
/* v4 curiosity card: lavender colour break, rotated beacon. */
.cp-detour {
	position: relative; overflow: hidden; margin: 24px 0; padding: 23px;
	background: var(--cp-lavender); border: 1px solid #d8c4f1; border-radius: 8px 17px 8px 8px;
}
.cp-detour .cp-eyebrow { color: #6d5c7b; } /* 4.96:1 on the card */
.cp-detour .cp-eyebrow::before { display: none; }
.cp-detour__title { margin: 10px 0; max-width: calc(100% - 45px); font: 700 24px/1.15 var(--cp-font-display); letter-spacing: -0.015em; color: var(--cp-ink); }
.cp-detour__text { margin: 0 0 15px; max-width: 470px; font-size: 16px; line-height: 1.6; color: #6d5c7b; }
.cp-detour__mark { position: absolute; right: 20px; top: 21px; width: 42px; height: 42px; color: #78609c; transform: rotate(8deg); }

.cp-empty {
	display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 18px 0; padding: 26px 22px;
	background: var(--cp-surface); border: 1px dashed #d4c6e6; border-radius: 10px 3px 10px 10px;
}
.cp-empty__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 9px;
	background: var(--cp-lavender); color: var(--cp-purple);
}
.cp-empty__title { margin: 6px 0 0; font: 700 22px/1.2 var(--cp-font-display); letter-spacing: -0.01em; color: var(--cp-ink); }
.cp-empty__text { margin: 0 0 8px; font-size: 16px; color: var(--cp-sub); max-width: 32em; }

.cp-pager { margin: 26px 0 8px; }
.cp-more {
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 18px;
	border-radius: 8px; border: 1px solid var(--cp-purple-200); background: var(--cp-lavender); box-shadow: 3px 4px 0 var(--cp-purple-200);
	color: var(--cp-purple-dark); font: 700 16px/1.2 var(--cp-font-body); text-decoration: none; cursor: pointer;
	transition: transform 180ms var(--cp-ease), box-shadow 180ms var(--cp-ease);
}
.cp-site .cp-more:hover { color: var(--cp-purple-dark); transform: translate(-1px, -1px); box-shadow: 4px 5px 0 var(--cp-purple-200); }
.cp-more__count { display: inline-flex; align-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--cp-white); font-size: 12px; }
.cp-more .cp-icon { width: 18px; height: 18px; }
.cp-more.is-loading { opacity: .7; cursor: progress; }
.cp-more--continue { background: var(--cp-surface); }
.cp-pager--pages { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cp-pager__where { font-size: 13px; color: var(--cp-sub); }
.cp-pager__error { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-pager__error p { margin: 0; width: 100%; color: #8a2d4b; font-size: 16px; }

/* ======================================================================= feed layout */
.cp-feed__layout { display: block; }
.cp-rail { display: none; }
.cp-feed-head { margin: 0 0 8px; }
.cp-feed-head__title { margin: 0; font: 700 24px/1.2 var(--cp-font-display); letter-spacing: -0.01em; }
.cp-feed-head__text { margin: 8px 0 0; font-size: 16px; color: var(--cp-sub); }
.cp-feed--game .cp-chips { margin-top: 10px; border-top: 1px solid var(--cp-line); }
.cp-feed--listing .cp-feed-status, .cp-feed--topic .cp-feed-status, .cp-feed--search .cp-feed-status, .cp-feed--author .cp-feed-status { margin-top: 0; }

/* ======================================================================= article */
.cp-main--article { padding-top: 10px; }
.cp-article { max-width: 720px; margin: 0 auto; }
.cp-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; list-style: none; margin: 5px 0 17px; padding: 0; }
.cp-breadcrumbs li { display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1.5 var(--cp-font-mono); color: var(--cp-sub); }
.cp-breadcrumbs li + li::before { content: '›'; color: #9b8fac; font-size: 13px; }
.cp-breadcrumbs a { display: inline-block; padding: 7px 2px; margin: -7px -2px; color: var(--cp-sub); text-decoration: none; } /* a11y: 30px tall targets, --cp-sub text */
.cp-site .cp-breadcrumbs a:hover { color: var(--cp-purple-dark); text-decoration: underline; }
.cp-article-head { position: relative; padding: 5px 0 0; margin: 4px 0 22px; }
.cp-article-title { margin: 14px 0 0; font: 700 clamp(30px, 8.6vw, 34px)/1.17 var(--cp-font-display); letter-spacing: -0.015em; color: var(--cp-ink); overflow-wrap: anywhere; }
.cp-article-dek { margin: 15px 0 0; font-size: 16px; line-height: 1.65; color: #7c6587; }
.cp-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 17px; font-size: 12px; color: var(--cp-sub); }
.cp-byline__author { display: inline-flex; align-items: center; gap: 7px; }
.cp-byline__avatar {
	display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px;
	background: var(--cp-world-bg); color: var(--cp-purple-dark); font-weight: 800; font-size: 12px; /* a11y: dark purple, 6.7:1 */
}
.cp-byline__name { font-weight: 700; color: #574b6b; }
.cp-guide-meta {
	display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 16px 0 0; padding: 12px 14px;
	background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: 8px;
}
.cp-guide-meta div { min-width: 0; }
.cp-guide-meta dt { font: 500 10.5px/1.5 var(--cp-font-mono); letter-spacing: .6px; text-transform: uppercase; color: var(--cp-muted); }
.cp-guide-meta dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--cp-ink); }
.cp-article-facts { margin-top: 12px; }
.cp-correction {
	margin: 16px 0 0; padding: 12px 14px; border-left: 3px solid #b7791f; border-radius: 0 6px 6px 0;
	background: #fdf3e2; color: var(--cp-ink); font-size: 16px; line-height: 1.6;
}
.cp-article-cover { margin: 0 0 27px; }
.cp-article-cover .cp-img, .cp-article-cover .cp-cover {
	display: block; width: 100%; height: auto; aspect-ratio: var(--cp-cover-ratio); object-fit: cover;
	border: 1px solid #d1bddf; border-radius: 8px;
}
.cp-article-cover figcaption { margin: 9px 0 0; font-size: 14px; line-height: 1.5; letter-spacing: .1px; color: var(--cp-sub); }

/* article body: core blocks */
.cp-article-body { font-size: 17px; line-height: 1.75; color: var(--cp-body); }
.cp-article-body > * { margin-block: 0 1.15em; }
.cp-article-body > h2 { margin: 1.7em 0 .5em; font: 700 24px/1.2 var(--cp-font-display); letter-spacing: -0.01em; color: var(--cp-heading); }
.cp-article-body > h2:first-child { margin-top: 0; }
.cp-article-body > h2:not(:first-child) { margin-top: 31px; padding-top: 29px; border-top: 1px solid var(--cp-shadow); }
.cp-article-body > h3 { margin: 1.5em 0 .45em; font: 600 20px/1.3 var(--cp-font-display); color: var(--cp-heading); }
.cp-article-body a { color: var(--cp-purple-dark); text-underline-offset: 2px; }
.cp-article-body ul, .cp-article-body ol { padding-left: 1.3em; }
.cp-article-body li { margin: .35em 0; }
.cp-article-body blockquote { margin-left: 0; }
.cp-article-body figure { margin-inline: 0; }
.cp-article-body figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--cp-sub); }

/* Tables: scroll sideways inside their own box (never the page), with fading edges as the cue and a
   small label the script adds when the table is wider than the column. */
.wp-block-table { position: relative; margin: 1.4em 0; }
.cp-table-scroll {
	max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
	background:
		linear-gradient(to right, var(--cp-paper), rgba(250, 250, 246, 0)) left / 36px 100% no-repeat local,
		linear-gradient(to left, var(--cp-paper), rgba(250, 250, 246, 0)) right / 36px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(41, 33, 57, .2), rgba(41, 33, 57, 0)) left / 12px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(41, 33, 57, .2), rgba(41, 33, 57, 0)) right / 12px 100% no-repeat scroll;
}
.wp-block-table table { width: auto; min-width: 100%; margin: 0; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
/* Four or more columns: keep a readable measure per column and let the box scroll instead. */
.wp-block-table table:has(tr > :nth-child(4)) { width: max-content; max-width: 46em; }
/* 0.3.4: up to three columns fit a 390px phone (3 x 7.5em was 2px too wide and brought up the swipe hint). */
.wp-block-table table:not(:has(tr > :nth-child(4))) :is(th, td) { min-width: 5.5em; }
.wp-block-table th, .wp-block-table td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--cp-line); text-align: left; vertical-align: top; min-width: 7.5em; }
.wp-block-table thead th, .wp-block-table th[scope] { font: 700 15px/1.3 var(--cp-font-display); color: var(--cp-ink); background: var(--cp-lavender); white-space: nowrap; }
.wp-block-table tbody th { font-weight: 700; color: var(--cp-ink); }
.cp-table-hint { display: none; margin: 0 0 6px; font: 500 12px/1.4 var(--cp-font-mono); letter-spacing: .4px; text-transform: uppercase; color: var(--cp-muted); }
.wp-block-table.is-scrollable .cp-table-hint { display: block; }
.cp-table-scroll:focus-visible { outline: 3px solid var(--cp-purple); outline-offset: 2px; }
.cp-article-body img { border-radius: 8px; }
.cp-callout { padding: 16px 18px; border-radius: 8px; background: var(--cp-surface); border: 1px solid var(--cp-line); }
.cp-callout--tip { background: var(--cp-mint); border-color: #bfe8cc; }
.cp-callout--summary { background: var(--cp-lavender); border-color: var(--cp-purple-200); }
.cp-callout__label { margin: 0 0 6px !important; font: 600 11px/1.4 var(--cp-font-mono); letter-spacing: .8px; text-transform: uppercase; color: var(--cp-muted); }
.cp-callout > :last-child { margin-bottom: 0; }

/* article end */
.cp-article-end { margin-top: 28px; }
.cp-article-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-sample-note {
	display: flex; gap: 10px; align-items: flex-start; margin: 24px 0 0; padding: 14px 16px;
	font-size: 13px; line-height: 1.55; color: var(--cp-sub); background: var(--cp-purple-50); border: 1px solid var(--cp-line-strong); border-radius: 4px;
}
.cp-sample-note .cp-icon { width: 18px; height: 18px; color: var(--cp-purple); margin-top: 1px; }
.cp-sample-note strong { color: var(--cp-ink); }
.cp-sources { margin-top: 30px; }
.cp-sources ul { list-style: none; margin: 10px 0 0; padding: 0; }
.cp-sources li { border-bottom: 1px solid var(--cp-line); }
.cp-sources a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; font-size: 16px; font-weight: 600; text-decoration: none; }
.cp-sources a .cp-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.cp-related { margin-top: 34px; }
.cp-section-title--spark { display: flex; align-items: flex-start; gap: 9px; font-size: 26px; line-height: 1.07; letter-spacing: -0.02em; }
.cp-section-title--spark .cp-icon { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px; color: #8d60c8; }
.cp-related .cp-row__title { font-size: 18px; }

/* ======================================================================= game page */
.cp-game-head { padding: 0 0 22px; margin: 0 0 20px; border-bottom: 1px solid var(--cp-line); }
.cp-game-head__body { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 15px; padding-top: 4px; }
.cp-game-mark {
	display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto;
	width: 46px; height: 46px; border-radius: 8px 14px 8px 8px;
	background: var(--cover-bg, var(--cp-world-bg)); color: var(--cover-ink, var(--cp-world-ink));
	border: 1px solid color-mix(in srgb, var(--cover-ink, var(--cp-world-ink)) 20%, transparent);
}
.cp-game-mark .cp-icon { width: 58%; height: 58%; }
.cp-game-mark__img { width: 100%; height: 100%; object-fit: cover; }
.cp-game-mark--lg { width: 54px; height: 54px; }
.cp-game-mark--sm { width: 32px; height: 32px; border-radius: 6px 10px 6px 6px; }
.cp-game-head .cp-eyebrow { letter-spacing: .6px; }
.cp-game-head .cp-eyebrow::before { display: none; }
.cp-game-title { margin: 6px 0 11px; font: 700 clamp(27px, 7.5vw, 34px)/1.12 var(--cp-font-display); letter-spacing: -0.015em; color: var(--cp-ink); overflow-wrap: anywhere; }
.cp-game-desc { margin: 0; font-size: 16px; line-height: 1.65; color: var(--cp-sub); }
.cp-game-aka { margin: 8px 0 0; font-size: 12px; color: var(--cp-sub); }
.cp-game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.cp-catalog-back { margin: 26px 0 0; }
.cp-follow {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--cp-touch); padding: 10px 12px;
	border-radius: 6px; border: 1px solid #cdbbdb; background: var(--cp-surface); color: #805c99; font: 700 16px/1.2 var(--cp-font-body);
	cursor: pointer; transition: background-color 180ms, color 180ms;
}
.cp-follow .cp-icon { width: 17px; height: 17px; }
.cp-follow:hover { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-follow[aria-pressed="true"] { background: var(--cp-purple); border-color: var(--cp-purple); color: var(--cp-white); }
.cp-follow[aria-pressed="true"] .cp-icon { fill: currentColor; fill-opacity: .9; }
.cp-follow--compact { padding: 9px 10px; }
.cp-follow .cp-follow__on, .cp-follow[aria-pressed="true"] .cp-follow__off { display: none; }
.cp-follow[aria-pressed="true"] .cp-follow__on { display: inline-block; }

/* ======================================================================= games index */
.cp-games__form { display: grid; gap: 10px; margin: 6px 0 16px; }
.cp-games__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cp-games__filters select {
	flex: 1 1 160px; min-height: var(--cp-touch); padding: 0 12px; border-radius: 8px; border: 1px solid var(--cp-line-strong);
	background: var(--cp-white); color: var(--cp-ink); font: 400 16px/1.2 var(--cp-font-body);
}
.cp-games__status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 4px; }
.cp-games__sort { font: 500 11px/1.5 var(--cp-font-mono); color: var(--cp-sub); }
.cp-games__list { list-style: none; margin: 0; padding: 0; }
.cp-game-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--cp-line); }
.cp-game-row__link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; min-height: 52px; color: var(--cp-ink); text-decoration: none; }
.cp-game-row__copy { display: flex; flex-direction: column; min-width: 0; }
.cp-game-row__name { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--cp-ink); }
.cp-game-row__meta, .cp-game-row__match { font-size: 12px; color: var(--cp-sub); }
.cp-game-row__match { font-family: var(--cp-font-mono); font-size: 11px; color: var(--cp-muted); }
.cp-game-row__arrow { width: 18px; height: 18px; color: var(--cp-purple); flex: 0 0 auto; margin-left: auto; }
.cp-site .cp-game-row__link:hover .cp-game-row__name { color: var(--cp-purple-dark); text-decoration: underline; }
.cp-games .cp-following { min-height: var(--cp-touch); }
/* 0.3.4: the Following switch is shown by script. It keeps its place while hidden, so the Search button and the
   list below don't jump when it appears (0.14 layout shift on phones, measured 27 Nov 2026). */
.cp-site .cp-games__filters .cp-following[hidden] { display: inline-flex !important; visibility: hidden; }
/* 0.3.5: the same for the Follow button of each row. When it appeared, long game names wrapped and the rows grew
   (0.04 layout shift left after 0.3.4, measured on the live Games page). */
.cp-site .cp-game-row .cp-follow[hidden] { display: inline-flex !important; visibility: hidden; }

/* ======================================================================= discover */
.cp-mood { margin: 8px 0 30px; padding: 18px 0 4px; border-top: 1px solid var(--cp-line); }
.cp-mood__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.cp-mood__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9px 14px 9px 9px; background: var(--cp-lavender); color: var(--cp-purple); flex: 0 0 auto; }
.cp-mood--make .cp-mood__icon { background: var(--cp-acid); color: #5c487c; }
.cp-mood--explore .cp-mood__icon { background: var(--cp-mint); color: #3f6b4c; }
.cp-mood--people .cp-mood__icon { background: var(--cp-pink); color: #8a3d5c; }
.cp-mood__title { margin: 2px 0 4px; font: 700 24px/1.2 var(--cp-font-display); letter-spacing: -0.01em; }
.cp-mood__text { margin: 0; font-size: 16px; color: var(--cp-sub); }
.cp-mood .cp-row__title { font-size: 18px; }

/* ======================================================================= saved */
.cp-saved__games { margin-top: 30px; }
.cp-saved__games-list, .cp-search-games__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cp-game-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 6px; border: 1px solid var(--cp-line-strong); border-radius: 10px; background: var(--cp-surface); }
.cp-game-chip__link { display: inline-flex; align-items: center; gap: 8px; min-height: var(--cp-touch); padding-right: 6px; color: var(--cp-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.cp-game-chip .cp-follow { min-height: var(--cp-touch); min-width: var(--cp-touch); padding: 6px 8px; } /* primary control: 44px */
.cp-game-chip .cp-follow .cp-follow__text { display: none; }
.cp-saved__missing { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cp-saved__missing p { margin: 0; }
.cp-search-games { margin: 4px 0 18px; }

/* ======================================================================= search & forms */
.cp-search-form__label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--cp-ink); }
.cp-search-form__row { display: flex; gap: 8px; }
.cp-search-form__row input {
	flex: 1; min-width: 0; min-height: var(--cp-touch); padding: 0 12px; border: 1px solid var(--cp-line-strong); border-radius: 8px;
	background: var(--cp-white); font: 400 16px/1.2 var(--cp-font-body); color: var(--cp-ink);
}
.cp-not-found__links { margin: 18px 0; }

/* ======================================================================= pages */
.cp-page { max-width: 720px; margin: 0 auto; }
.cp-page__body { font-size: 17px; line-height: 1.75; color: var(--cp-body); }
.cp-page__body > * { margin-block: 0 1.1em; }
/* Section headings sit closer to their own text than to the section before (About, Contact). */
.cp-page__body > h2 { margin: 1.6em 0 .45em; }
.cp-page__body > h2:first-child { margin-top: 0; }
.cp-page__body a:not(.cp-button) { color: var(--cp-purple-dark); text-underline-offset: 2px; }
.cp-page__title { margin-bottom: 18px; }
.cp-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 1.1em; }
.cp-contact__address { font: 500 15px/1.4 var(--cp-font-mono); color: var(--cp-sub); overflow-wrap: anywhere; }
.cp-explore { margin: 34px 0 8px; padding: 18px 0 0; border-top: 1px solid var(--cp-line); }
.cp-explore ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.cp-explore a {
	display: inline-flex; align-items: center; gap: 8px; min-height: var(--cp-touch); padding: 8px 14px;
	border: 1px solid var(--cp-line-strong); border-radius: 999px; background: var(--cp-surface);
	color: var(--cp-ink); font: 600 16px/1.2 var(--cp-font-body); text-decoration: none;
}
.cp-explore a .cp-icon { width: 15px; height: 15px; color: var(--cp-purple); }
.cp-explore a:hover { background: var(--cp-lavender); color: var(--cp-purple-dark); }
.cp-landing > * + * { margin-block-start: 0; }

/* ======================================================================= footer */
.cp-footer {
	position: relative; max-width: var(--cp-content-max); margin: 32px auto 0; padding: 23px var(--cp-gutter) 12px;
	border-top: 1px solid var(--cp-line);
}
.cp-footer::before {
	content: ''; position: absolute; left: 21px; right: 21px; top: -12px; height: 5px; opacity: .5;
	background: repeating-linear-gradient(90deg, #c8b3db 0 7px, transparent 7px 12px);
}
.cp-footer__main { display: grid; gap: 10px; }
.cp-brand--footer { margin: 0; }
.cp-footer__tagline { margin: 0; font-size: 16px; line-height: 1.6; color: var(--cp-sub); } /* a11y: was #8b7396 (4.0:1) */
.cp-footer__links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.cp-footer__links a { display: inline-flex; align-items: center; min-height: var(--cp-touch); font-size: 16px; font-weight: 600; color: #805d93; text-decoration: none; }
.cp-site .cp-footer__links a:hover { color: var(--cp-purple-dark); text-decoration: underline; }
.cp-search-form { margin: 16px 0 6px; max-width: 520px; }
.cp-footer__fine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 12px; font-size: 12px; color: var(--cp-sub); } /* a11y: was #927b9c (3.6:1) */
.cp-footer__fine p { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.cp-footer__sample .cp-icon { width: 14px; height: 14px; color: var(--cp-purple); }
.cp-to-top { display: inline-flex; align-items: center; min-height: var(--cp-touch); font: 600 12px/1.2 var(--cp-font-mono); color: var(--cp-sub); text-decoration: none; } /* a11y: was #9b8fac (2.9:1) */
.cp-site .cp-to-top:hover { color: var(--cp-purple-dark); text-decoration: underline; }

/* ======================================================================= tablet */
@media (min-width: 700px) {
	.cp-detour { padding: 27px; margin: 27px 0; }
	.cp-detour__title { font-size: 28px; }
	.cp-header__inner { padding: 0 var(--cp-gutter); }
	.cp-intro { padding-right: 160px; }
	.cp-intro__title { font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; }
	.cp-intro__text { font-size: 17px; }
	.cp-sticker { width: auto; height: auto; padding: 14px 16px; top: 28px; }
	.cp-sticker__text { display: block; font: 600 10px/1.3 var(--cp-font-mono); letter-spacing: .8px; text-transform: uppercase; max-width: 8em; }
	.cp-chips { margin: 0; }
	.cp-chips__scroller { padding-inline: 0; }
	.cp-lead__title { font-size: 28px; }
	.cp-row { gap: 20px; }
	.cp-row__title { font-size: 22px; }
	.cp-article-body { font-size: 18px; }
	.cp-article-title { font-size: 42px; line-height: 1.12; letter-spacing: -0.02em; }
	.cp-search-trigger__label { display: inline; }
	.cp-search-trigger { padding: 10px 12px; border: 1px solid var(--cp-line-strong); border-radius: 7px; background: var(--cp-surface); margin-right: 4px; }
}

/* ======================================================================= desktop */
@media (min-width: 1024px) {
	body.cp-site { padding-bottom: 0; }
	.cp-dock { display: none; }
	.cp-header__inner { gap: 21px; padding: 0 28px; }
	.cp-brand { margin-right: 0; flex: 0 0 auto; } /* the wordmark never gives way to the nav */
	.cp-nav { display: flex; align-items: center; gap: 1px; margin-left: 2px; margin-right: auto; }
	.cp-nav__link {
		display: inline-flex; align-items: center; gap: 5px; min-height: var(--cp-touch); padding: 10px 12px; border-radius: 5px;
		font: 700 16px/1.2 var(--cp-font-body); color: var(--cp-sub); text-decoration: none;
	}
	.cp-nav__link .cp-icon { width: 17px; height: 17px; }
	.cp-site .cp-nav__link:hover { color: var(--cp-purple-dark); background: var(--cp-lavender); }
	.cp-site .cp-nav__link[aria-current="page"] { color: #5f32a4; background: var(--cp-world-bg); box-shadow: inset 0 -2px 0 #a581d9; }
	.cp-header__saved { display: inline-flex; border: 1px solid var(--cp-line-strong); border-radius: 5px; background: var(--cp-surface); color: #7d5f99; }
	.cp-main { padding: 37px 28px 55px; }
	.cp-intro { padding: 1px 220px 28px 0; }
	.cp-intro__title { font-size: 48px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 8px; }
	.cp-intro__text { font-size: 16px; }
	.cp-sticker { top: 22px; right: 10px; }
	.cp-feed--home .cp-feed__layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 42px; align-items: start; }
	.cp-rail { display: block; position: sticky; top: calc(var(--cp-header-height) + var(--cp-admin-bar) + 20px); }
	.cp-rail__card { padding: 20px; background: var(--cp-purple-100); border: 1px solid var(--cp-purple-200); border-radius: 10px 3px 10px 10px; }
	.cp-rail__title { margin: 10px 0 13px; font: 700 26px/1.15 var(--cp-font-display); letter-spacing: -0.015em; color: var(--cp-ink); }
	.cp-rail__text { margin: 0 0 14px; font-size: 16px; line-height: 1.6; color: var(--cp-sub); }
	.cp-rail__links { margin-top: 18px; }
	.cp-rail__heading { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
	.cp-rail__links ul { list-style: none; margin: 0; padding: 0; }
	.cp-rail__links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--cp-touch); border-bottom: 1px solid var(--cp-line); font-size: 16px; color: var(--cp-sub); text-decoration: none; }
	.cp-rail__links a .cp-icon { width: 16px; height: 16px; color: var(--cp-purple); }
	.cp-site .cp-rail__links a:hover { color: var(--cp-purple-dark); }
	.cp-lead__title { font-size: 32px; letter-spacing: -0.02em; }
	.cp-row { gap: 22px; padding: 23px 0; }
	.cp-row__title { font-size: 22px; margin-top: 9px; }
	.cp-feed--game, .cp-feed--listing, .cp-feed--topic, .cp-feed--search, .cp-feed--author, .cp-game-head, .cp-games, .cp-mood, .cp-saved, .cp-search-games, .cp-landing .cp-page-intro, .cp-main--archive .cp-page-intro, .cp-search-head, .cp-not-found { max-width: 860px; }
	.cp-page-intro { padding-bottom: 26px; }
	.cp-display { font-size: 46px; line-height: 1.08; letter-spacing: -0.02em; }
	.cp-game-head__body { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; }
	.cp-game-mark--lg { width: 72px; height: 72px; }
	.cp-footer { padding: 30px 28px 18px; }
	.cp-footer__main { grid-template-columns: 1fr auto; align-items: start; }
}

/* ======================================================================= motion */
@media (prefers-reduced-motion: reduce) {
	.cp-site *, .cp-site *::before, .cp-site *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.cp-lead:hover .cp-lead__media .cp-img { transform: none; }
	.cp-button:hover, .cp-more:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

/* Desktop below 1280px: six nav items plus the actions. The search trigger shows only its icon
   (still named "Search") so the wordmark never gives way. */
@media (min-width: 1024px) and (max-width: 1279px) {
	.cp-search-trigger__label { display: none; }
	.cp-search-trigger { padding: 10px; }
}

/* ======================================================================= prelaunch (no public article yet) */
.cp-intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.cp-intro--prelaunch .cp-intro__text { color: var(--cp-body); }
.cp-prelaunch {
	position: relative; margin: 26px 0 8px; padding: 20px 18px 8px; border: 1px solid var(--cp-line-strong); border-radius: 12px;
	background: var(--cp-surface); box-shadow: 4px 5px 0 var(--cp-lavender);
}
.cp-prelaunch__mark { position: absolute; top: -26px; right: 14px; width: 54px; height: auto; transform: rotate(-6deg); }
.cp-prelaunch .cp-section-title { margin: 0 64px 12px 0; }
.cp-prelaunch__list { list-style: none; margin: 0; padding: 0; }
.cp-prelaunch__list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--cp-line); font-size: 16px; line-height: 1.55; color: var(--cp-body); }
.cp-prelaunch__list li:first-child { border-top: 0; }
.cp-prelaunch__list strong { display: block; color: var(--cp-ink); font: 700 18px/1.3 var(--cp-font-display); letter-spacing: -0.01em; }
.cp-prelaunch__icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; background: var(--cp-lavender); color: var(--cp-purple); }
.cp-prelaunch__icon .cp-icon { width: 20px; height: 20px; }
@media (min-width: 700px) {
	.cp-prelaunch { max-width: 760px; padding: 26px 28px 14px; }
	.cp-prelaunch__mark { width: 66px; top: -30px; }
}

/* ======================================================================= 0.3.2 readable labels */
/* Site audit, 19 November 2026: no visible text under 12px. The labels keep their fonts and
   letter-spacing; only the size floor rises. The notification badge (a number in a 18px dot) is the
   one exception. */
.cp-eyebrow, .cp-menu__heading, .cp-drawer__heading, .cp-dock__label, .cp-format, .cp-row .cp-format,
.cp-tag, .cp-tag-more, .cp-meta, .cp-stamp, .cp-breadcrumbs li, .cp-guide-meta dt, .cp-callout__label,
.cp-games__sort, .cp-game-row__match, .cp-sticker__text { font-size: 12px; }


/* ======================================================================= 0.3.3 the design rules */
/* Owner, 26 Nov 2026: "we need a set of rules for the design moving forward". The rules are the design system
   "cixgaming" (audits/2026-11-26-design/DESIGN_RULES.md). Above, colours typed by hand that already matched a
   rule colour now use its name. Below, the few places where a page differed from the rules in a way a reader sees. */
/* the home page's title is "display": 46px, like every other page */
@media (min-width: 1024px) { .cp-intro__title { font-size: 46px; line-height: 1.08; } }
/* a section heading is "title" everywhere: 24px in cp-ink */
.cp-site .cp-page__body h2 { margin: 32px 0 12px; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
.cp-site .cp-article-body h2 { color: var(--cp-ink); }
/* long text is "reading" on pages as it is in articles: 18px from 700px wide */
@media (min-width: 700px) { .cp-page__body { font-size: 18px; } }
/* one grey for the line under a title, one for labels */
.cp-lead__dek, .cp-article-dek, .cp-detour__text, .cp-detour .cp-eyebrow { color: var(--cp-sub); }
.cp-footer__links a { color: var(--cp-muted); }
.cp-byline__name { color: var(--cp-body); }
/* a field's edge can be found: 3.1 to 1 against white */
.cp-search-form__row input { border-color: var(--cp-line-field); }
/* the small label is spaced alike on every page */
.cp-game-head .cp-eyebrow { letter-spacing: .9px; }
