/* OMG Brain website (omgbrain.com).
 * Look follows braintraining.app: airy light-blue hero, indigo brand, big rounded
 * cards, pastel tiles per skill. Copy and legal structure come from the AISD-707
 * draft. App colour tokens (lib/app/theme/tokens.dart) are still neutral
 * placeholders, so these values are the website's own until the visual design lands. */
:root {
	--ink: #0f184c;
	--muted: #4d5577;
	--line: #dfe5f4;
	--bg: #ffffff;
	--bg-soft: #f4f7fd;
	--surface: #ffffff;
	--brand: #4565db;
	--brand-strong: #344eb7;
	--brand-ink: #ffffff;
	--brand-soft: #eff3fb;
	--hero-from: #a0c2fe;
	--hero-to: #eef3ff;
	--sun: #ffc23d;
	--shadow: 0 18px 40px -18px rgba(15, 24, 76, 0.28);

	--memory: #6c5ce7;
	--memory-soft: #efecff;
	--focus: #ff8a3d;
	--focus-soft: #fff1e6;
	--speed: #22b573;
	--speed-soft: #e5f8ef;
	--flex: #f0567a;
	--flex-soft: #fdebf0;
	--logic: #f2a900;
	--logic-soft: #fff6d9;
	--logic-ink: #8f6400;

	--display: 'Nunito', ui-rounded, system-ui, sans-serif;
	--body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--radius-lg: 32px;
	--radius: 24px;
	--radius-sm: 18px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme='light']) {
		--ink: #eef1fc;
		--muted: #a7aecb;
		--line: #273055;
		--bg: #0b1030;
		--bg-soft: #10173d;
		--surface: #141c47;
		--brand: #6683e2;
		--brand-strong: #89a1e9;
		--brand-ink: #0b1030;
		--brand-soft: #1a2456;
		--hero-from: #1f2f78;
		--hero-to: #0b1030;
		--shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
		--memory-soft: #241f55;
		--focus-soft: #3a2414;
		--speed-soft: #0f3324;
		--flex-soft: #3b1623;
		--logic-soft: #3a2d08;
		--logic-ink: #f2a900;
		color-scheme: dark;
	}
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: var(--brand-soft); color: var(--brand); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 16px; background: #000; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 19px; line-height: 1.05; border: 1px solid rgba(255, 255, 255, 0.2); }
.store small { display: block; font-weight: 700; font-size: 11px; opacity: 0.8; }
.store-icon { width: 26px; height: 26px; flex-shrink: 0; }
.stores { display: inline-flex; flex-wrap: wrap; gap: 12px; }
[data-placeholder-link] { cursor: not-allowed; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.top.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 21px; }
.mark { width: 36px; height: 36px; border-radius: 11px; background: var(--brand); display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 7px; flex-shrink: 0; }
.mark i { border-radius: 3px; background: #fff; }
.mark i:first-child { background: var(--sun); }
.mark i:last-child { background: #ff8fb1; border-radius: 50%; }
.links { display: flex; align-items: center; gap: 4px; }
.links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; padding: 8px 14px; border-radius: 12px; opacity: 0.82; }
.links a:not(.btn):hover, .links a[aria-current='page'] { opacity: 1; background: var(--brand-soft); color: var(--brand); }
.links .btn { margin-left: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--brand-soft); cursor: pointer; place-items: center; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); position: relative; }
.burger::before, .burger::after { content: ''; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--hero-from) 0%, var(--hero-to) 78%, var(--bg) 100%); padding-block: 48px 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 36ch; margin: 20px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-proof { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-proof b { display: block; font-family: var(--display); font-size: 28px; font-weight: 900; }
.hero-proof span { color: var(--muted); font-size: 15px; }

/* Phone mockup with placeholder app screen */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { position: relative; width: 290px; aspect-ratio: 9 / 19; border-radius: 46px; background: #0f184c; padding: 12px; box-shadow: 0 40px 80px -30px rgba(15, 24, 76, 0.55); z-index: 1; }
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; translate: -50% 0; width: 86px; height: 24px; border-radius: 999px; background: #0f184c; z-index: 2; }
.screen { height: 100%; border-radius: 36px; background: #f4f7fd; padding: 54px 16px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; color: #0f184c; }
.screen-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.streak { font-size: 13px; background: #fff6d9; color: #a06e00; padding: 4px 10px; border-radius: 999px; }
.workout { background: #4565db; color: #fff; border-radius: 22px; padding: 16px; }
.workout small { opacity: 0.8; font-weight: 700; font-size: 12px; }
.workout b { display: block; font-family: var(--display); font-size: 18px; margin: 2px 0 10px; }
.progress { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.progress i { display: block; width: 33%; height: 100%; background: var(--sun); border-radius: inherit; }
.mini-game { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 10px; font-family: var(--display); font-weight: 800; font-size: 15px; }
.mini-game span { width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0; }
.mini-game em { margin-left: auto; font-style: normal; font-size: 12px; color: #4d5577; }
.floater { position: absolute; border-radius: 22px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.floater.f1 { width: 92px; height: 92px; background: var(--focus); top: 40px; left: 6%; rotate: -10deg; }
.floater.f2 { width: 70px; height: 70px; background: var(--speed); border-radius: 50%; bottom: 70px; left: 2%; animation-delay: -2s; }
.floater.f3 { width: 84px; height: 84px; background: var(--memory); top: 90px; right: 4%; rotate: 12deg; animation-delay: -4s; }
.floater.f4 { width: 58px; height: 58px; background: var(--sun); border-radius: 50%; bottom: 40px; right: 10%; animation-delay: -1s; }
@keyframes float { 50% { translate: 0 -14px; } }

/* Sections */
.section { padding-block: 88px; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-family: var(--display); font-weight: 900; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section h2 { font-size: clamp(32px, 4.4vw, 50px); }
.section-head p { color: var(--muted); font-size: 19px; margin-top: 16px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split .copy-block h2 { margin-bottom: 18px; }
.split .copy-block p { color: var(--muted); font-size: 18px; margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.check-list li::before { content: ''; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; margin-top: 2px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='%234565DB' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.report h3 { font-size: 20px; }
.report .sub { color: var(--muted); font-size: 14px; margin: 2px 0 22px; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 48px; gap: 12px; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 15px; }
.bar-row .track { height: 12px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: inherit; width: var(--w); background: var(--c); }
.bar-row output { text-align: right; font-family: var(--display); font-weight: 900; }
.report .placeholder-note { margin-top: 18px; }

/* Skills */
/* The five skill cards get a wider row than the 1160px content column, so their copy is not squeezed. */
.wrap-wide { max-width: 1400px; }
.skills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1180px) { .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skill { border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; background: var(--soft); }
.skill-head { display: flex; align-items: center; gap: 14px; }
.skill .dot { width: 44px; height: 44px; border-radius: 14px; background: var(--c); flex-shrink: 0; }
.skill h3 { font-size: 22px; }
.skill-why { color: var(--ink); opacity: 0.82; font-size: 16px; line-height: 1.55; flex: 1; }
.skill-games { font-size: 15px; font-weight: 700; color: var(--c); border-top: 1px solid color-mix(in srgb, var(--c) 25%, transparent); padding-top: 14px; }
.skill-games span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.skill-games a { color: var(--c); text-decoration: none; }
.skill-games a:hover { text-decoration: underline; }
.skill-games .soon { font-style: normal; font-weight: 700; font-size: 12px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 2px 8px; margin-left: 4px; white-space: nowrap; }

/* Tests */
.tests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.test { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; }
.test-art { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--soft); display: grid; place-items: center; }
.test-art svg { width: 64px; height: 64px; color: var(--c); }
.test h3 { font-size: 22px; margin-bottom: 6px; }
.test p { color: var(--muted); font-size: 16px; }
.meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.chip.skill-chip { background: var(--soft); color: var(--c); }

/* Games */
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.game { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.game:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-art { aspect-ratio: 16 / 10; background: var(--soft); position: relative; display: grid; place-items: center; overflow: hidden; }
.game-art .art { width: 46%; aspect-ratio: 1; display: grid; gap: 8px; }
.game-art .tag { position: absolute; top: 14px; left: 14px; }
.game-body { padding: 20px 22px 24px; }
.game-body h3 { font-size: 21px; margin-bottom: 6px; }
.game-body p { color: var(--muted); font-size: 15px; }
.game[hidden] { display: none; }
.game-art .art-flag { position: absolute; bottom: 12px; right: 12px; font-size: 11px; background: color-mix(in srgb, var(--surface) 80%, transparent); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -16px 0 32px; }
.filter { --c: var(--brand); --soft: var(--brand-soft); border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 15px; padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.filter:hover { border-color: var(--c); color: var(--c); }
.filter[aria-pressed='true'] { background: var(--c); border-color: var(--c); color: #fff; }

/* Placeholder game artwork, drawn in CSS so no image assets are needed yet. */
.art-grid { grid-template-columns: repeat(3, 1fr); }
.art-grid i { border-radius: 10px; background: color-mix(in srgb, var(--c) 30%, transparent); }
.art-grid i.on { background: var(--c); }
.art-words { place-items: center; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1; text-align: center; }
.art-arrows { grid-template-columns: repeat(3, 1fr); place-items: center; font-size: 34px; font-weight: 900; color: var(--c); }
.art-arrows i { font-style: normal; opacity: 0.35; }
.art-arrows i.on { opacity: 1; }
.art-grid i.odd { opacity: 0.55; }
.art-sum { place-items: center; align-content: center; gap: 14px; width: 70% !important; aspect-ratio: auto !important; }
.art-sum b { font-family: var(--display); font-size: 34px; font-weight: 900; color: var(--c); }
.art-sum span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.art-sum i { font-style: normal; background: var(--surface); color: var(--c); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 22px; height: 48px; box-shadow: 0 6px 14px -8px rgba(15, 24, 76, 0.5); border-radius: 14px; }
.art-sum i.on { background: var(--c); color: #fff; }

/* App banner */
.banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, #344eb7 0%, #4565db 55%, #6c5ce7 100%); color: #fff; padding: 56px; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 40px; align-items: center; }
.banner .eyebrow { color: var(--sun); }
.banner h2 { font-size: clamp(34px, 4.6vw, 54px); }
.banner p { opacity: 0.88; font-size: 19px; margin: 14px 0 28px; }
.qr { width: 168px; aspect-ratio: 1; border-radius: 22px; background: #fff; padding: 14px; display: grid; place-items: center; color: #0f184c; text-align: center; font-family: var(--display); font-weight: 800; font-size: 13px; }
.qr-code { width: 100%; height: 100%; border-radius: 8px; background:
	conic-gradient(from 90deg at 3px 3px, #0f184c 25%, transparent 0) 0 0 / 14px 14px,
	#fff; opacity: 0.85; display: grid; place-items: center; }
.qr-code span { background: #fff; padding: 4px 8px; border-radius: 6px; }
.banner::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -90px; bottom: -150px; background: rgba(255, 255, 255, 0.08); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.benefit { text-align: left; }
.benefit .icon { width: 56px; height: 56px; border-radius: 18px; background: var(--soft); color: var(--c); display: grid; place-items: center; margin-bottom: 18px; }
.benefit .icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 21px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 24px; }
details[open] { box-shadow: var(--shadow); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-weight: 800; font-size: 18px; padding: 20px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; font-weight: 700; transition: rotate 0.2s; }
details[open] summary::after { rotate: 45deg; }
details > p, details > div { padding-bottom: 20px; color: var(--muted); }

.disclaimer { text-align: center; color: var(--muted); font-size: 14px; max-width: 70ch; margin: 40px auto 0; }

/* Legal and support pages */
.page-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%); padding-block: 56px 24px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.page-hero .meta { color: var(--muted); margin-top: 12px; max-width: 64ch; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 32px 88px; align-items: start; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.toc a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-weight: 700; }
.toc a:hover, .toc a.active { background: var(--brand-soft); color: var(--brand); }
.prose { max-width: 70ch; min-width: 0; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.callout { background: var(--brand-soft); border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0; font-size: 16px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 16px 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-weight: 800; background: var(--bg-soft); }
tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 14px; }
.copy { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 16px; font-weight: 700; margin: 6px 0 10px; max-width: 100%; }
.copy span { overflow-wrap: anywhere; }
.copy button { border: 0; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font: inherit; font-size: 14px; padding: 6px 14px; cursor: pointer; }
.not-found { text-align: center; padding-block: 120px; }
.not-found h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 16px; }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* Footer */
.foot-wrap { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 48px; font-size: 15px; color: var(--muted); }
.foot { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot a:not(.logo) { display: block; color: var(--muted); text-decoration: none; padding: 4px 0; }
.foot a:not(.logo):hover { color: var(--brand); }
.foot b { display: block; color: var(--ink); font-family: var(--display); font-size: 16px; margin-bottom: 8px; }
.foot-note { margin-top: 12px; max-width: 40ch; }
.copyright { border-top: 1px solid var(--line); margin-top: 40px; padding-block: 20px; font-size: 14px; }

/* Responsive */
@media (max-width: 960px) {
	.hero-grid, .split, .doc, .banner { grid-template-columns: 1fr; }
	.phone-stage { min-height: 520px; }
	.skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.games, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tests { grid-template-columns: 1fr; }
	.toc { position: static; flex-direction: row; flex-wrap: wrap; }
	.banner { padding: 40px 28px; }
	.qr { display: none; }
}
@media (max-width: 760px) {
	.menu-toggle { display: grid; }
	.links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
	.links.open { display: flex; }
	.links .btn { margin: 8px 0 0; }
	.section { padding-block: 64px; }
	.games, .benefits, .steps, .foot { grid-template-columns: 1fr; }
	.test { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
	.hero { padding-bottom: 64px; }
	.phone { width: 250px; }
	.floater.f1, .floater.f3 { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Skill colour themes: set --c (accent) and --soft (tile background). */
.t-memory { --c: var(--memory); --soft: var(--memory-soft); }
.t-focus { --c: var(--focus); --soft: var(--focus-soft); }
.t-speed { --c: var(--speed); --soft: var(--speed-soft); }
.t-flex { --c: var(--flex); --soft: var(--flex-soft); }
.t-logic { --c: var(--logic); --soft: var(--logic-soft); }
.t-brand { --c: var(--brand); --soft: var(--brand-soft); }
.game-art .tag { background: var(--surface); box-shadow: 0 4px 12px -6px rgba(15, 24, 76, 0.35); }
.art-words { gap: 6px; }

/* Clickable game cards */
a.game { color: inherit; text-decoration: none; }
a.game:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: var(--radius); }
a.game:hover .game-body h3 { color: var(--c); }
.game-body { display: flex; flex-direction: column; flex: 1; }
.game-body .meta-row { margin-bottom: 16px; }
.game-more { margin-top: auto; font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--c); }
.game-more span { display: inline-block; transition: translate 0.15s ease; }
a.game:hover .game-more span { translate: 4px 0; }

/* Game page */
.game-hero { background: linear-gradient(180deg, var(--soft) 0%, var(--bg) 100%); padding-block: 28px 64px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 32px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs [aria-current] { color: var(--ink); }
.game-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.game-hero .skill-chip { background: var(--surface); }
.game-hero h1 { font-size: clamp(40px, 6vw, 64px); margin: 14px 0 12px; }
.game-hero .lead { font-size: 20px; color: var(--muted); max-width: 32ch; }
.game-hero .meta-row { margin: 20px 0 28px; }
.game-hero .meta-row .chip { background: var(--surface); }
.game-art-lg { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; background: var(--surface); box-shadow: var(--shadow); }
.game-art-lg .art { width: 52%; }
.game-art-lg .art-words { font-size: 52px; }
.game-art-lg .art-arrows { font-size: 56px; }
.game-art-lg .art-sum b { font-size: 56px; }
.game-art-lg .art-sum i { height: 72px; font-size: 30px; }
.game-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.game-detail .prose p { font-size: 18px; color: var(--muted); }
.howto { list-style: none; padding: 0; counter-reset: howto; display: grid; gap: 14px; }
.howto li { counter-increment: howto; display: flex; gap: 14px; align-items: flex-start; font-size: 17px; margin: 0; }
.howto li::before { content: counter(howto); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-family: var(--display); font-weight: 900; }
.side { position: sticky; top: 96px; }
.side h3 { font-size: 19px; margin-bottom: 4px; }
.side h3 + .check-list { margin: 14px 0 28px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 14px 0 0; font-size: 15px; }
.facts dt { color: var(--muted); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; }
.games-more { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) {
	.games-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.game-hero-grid, .game-detail { grid-template-columns: 1fr; }
	.side { position: static; }
}
@media (max-width: 760px) {
	.games-more { grid-template-columns: 1fr; }
}

/* Yellow fails contrast as text on light tiles; use a darker ink for Logic labels. */
.t-logic .skill-games, .t-logic .skill-games a, .t-logic .skill-chip, .t-logic .game-more, a.game.t-logic:hover .game-body h3 { color: var(--logic-ink); }

/* Clickable test cards and test pages */
a.card.test { color: inherit; text-decoration: none; transition: transform 0.2s ease; }
a.card.test:hover { transform: translateY(-4px); }
a.card.test:hover h3 { color: var(--c); }
a.card.test:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
a.card.test .game-more { display: inline-block; margin-top: 14px; }
.test-art-lg { display: grid; place-items: center; background: var(--soft); }
.test-art-lg svg { width: 38%; height: auto; color: var(--c); }
