/* What Can You Spot? Original presentation system. No external font requests. */
:root {
  --wcys-bg: #fbf9f2;
  --wcys-surface: #fffef9;
  --wcys-ink: #273b32;
  --wcys-muted: #5e675e;
  --wcys-yellow: #fae8af;
  --wcys-blue: #dfedf2;
  --wcys-green: #dce7d0;
  --wcys-pink: #f0d8cb;
  --wcys-line: #e5e4d9;
  --wcys-radius-card: 26px;
  --wcys-container: 1200px;
  --wcys-font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --wcys-heading-font: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
  --wcys-shadow: 0 10px 30px rgb(39 59 50 / 5%);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--wcys-bg); color: var(--wcys-ink); font-family: var(--wcys-font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #8a510e; outline-offset: 5px; }
::selection { background: #f3d77f; color: #273b32; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--wcys-heading-font); font-weight: 750; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.65rem, 2.7vw, 2.15rem); letter-spacing: -.035em; }
h3 { font-size: 1.3rem; letter-spacing: -.025em; }
ul, ol { padding-left: 1.35em; }
.container { width: min(var(--wcys-container), calc(100% - 64px)); margin-inline: auto; }
.sr-only, .screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 18px; border-radius: 10px; background: var(--wcys-ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--wcys-muted); }
.eyebrow { display: block; margin-bottom: 13px; color: #5a7059; font-size: .72rem; font-weight: 750; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: #8da671; vertical-align: 1px; }
.button, .btn { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 48px; padding: 12px 21px; border: 1px solid var(--wcys-ink); border-radius: 100px; background: var(--wcys-ink); color: #fffef9; font-size: .94rem; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s; }
.button:hover, .btn:hover { background: #3e5745; box-shadow: 0 5px 13px rgb(39 59 50 / 12%); transform: translateY(-2px); text-decoration: none; }
.button.secondary, .button--secondary, .btn-secondary { background: transparent; border-color: #b1b9a9; color: var(--wcys-ink); }
.button.secondary:hover, .button--secondary:hover, .btn-secondary:hover { background: #fffdf5; }
.button svg, .button img { width: 18px; height: 18px; flex-shrink: 0; }
.text-button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 5px 0; border: 0; background: transparent; color: var(--wcys-ink); font-weight: 650; line-height: 1.4; text-decoration: underline; text-underline-offset: 5px; }
.text-button:hover, .text-link:hover { text-decoration-thickness: 2px; }
.badge, .status-pill { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 5px 11px; border-radius: 100px; background: #e8ecd9; color: #40553b; font-size: .72rem; font-weight: 650; line-height: 1.5; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.demo-badge, .badge--demo { background: #eee3d3; color: #72502d; font-size: .65rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.demo-banner { padding: 6px 20px; border-bottom: 1px solid #e1e5d7; background: #edf0e5; color: #55644f; font-size: .7rem; font-weight: 550; line-height: 1.5; text-align: center; }

/* Header: the primary navigation stays short and the full language names are available to AT. */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--wcys-line); background: var(--wcys-bg); }
.header-inner { display: flex; align-items: center; gap: 30px; min-height: 94px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo-mark { width: 49px; height: 49px; }
.brand .brand-name { display: block; font-family: var(--wcys-heading-font); font-size: 1.18rem; font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.brand-name span { display: block; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 32px; margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav > a, .site-nav li > a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 550; text-decoration: none; }
.site-nav > a:hover, .site-nav li > a:hover { color: #8a510e; }
.site-nav a[aria-current="page"], .site-nav .current-menu-item > a { text-decoration: underline; text-decoration-color: #c59d45; text-decoration-thickness: 3px; text-underline-offset: 9px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.language-switcher { display: flex; align-items: center; gap: 1px; padding: 3px; border: 1px solid var(--wcys-line); border-radius: 100px; }
.language-switcher a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 38px; padding: 4px 8px; border-radius: 100px; font-size: .7rem; font-weight: 650; text-decoration: none; }
.language-switcher a[aria-current], .language-switcher a.is-active { background: #e9e9db; color: #314b39; }
.music-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--wcys-line); border-radius: 100px; background: transparent; font-size: .85rem; }
.music-trigger svg { width: 18px; height: 18px; }
.music-trigger:hover { background: var(--wcys-yellow); }
.nav-toggle { display: none; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--wcys-line); border-radius: 50%; background: #f1f0e7; }
.nav-toggle svg { width: 21px; height: 21px; }
.nav-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; margin-block: 4px; border-radius: 2px; background: currentColor; }

/* Home: friendly typography and two equally prominent ways to explore. */
.hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 35px; padding-block: 49px 39px; }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 680px; margin-bottom: 19px; font-weight: 800; }
.hero h1 span { display: block; }
.hero-description { max-width: 550px; color: var(--wcys-muted); font-size: 1.05rem; line-height: 1.7; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 25px; margin-top: 10px; font-size: .84rem; }
.hero-links a { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration-color: #bbc3ac; }
.hero-pip { position: relative; display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding-top: 4px; }
.hero-pip::before { content: ""; position: absolute; left: 7px; top: 10px; width: 220px; height: 220px; border-radius: 56% 44% 48% 52% / 48% 58% 42% 52%; background: #f0f0df; z-index: -1; }
.pip-hero { display: block; flex-shrink: 0; width: 230px; }
.pip-note { max-width: 185px; margin-top: -22px; color: var(--wcys-muted); font-size: .83rem; line-height: 1.6; }
.pip-note p { margin-bottom: 5px; }
.pip-note .text-button { font-size: .85rem; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.activity-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); align-items: center; gap: 6px; min-height: 285px; padding: 29px 19px 29px 29px; border: 1px solid rgb(39 59 50 / 3%); border-radius: var(--wcys-radius-card); }
.activity-card.hidden-objects { background: var(--wcys-yellow); }
.activity-card.spot-difference { background: var(--wcys-blue); }
.activity-copy { position: relative; z-index: 1; min-width: 0; }
.activity-icon { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; margin-bottom: 13px; color: #3d553b; }
.activity-icon svg, .activity-icon img { width: 30px; height: 30px; }
.activity-card h2 { max-width: 290px; margin-bottom: 12px; font-size: clamp(1.4rem, 2.05vw, 1.75rem); font-weight: 780; line-height: 1.17; letter-spacing: -.035em; }
.activity-card p { max-width: 275px; margin-bottom: 21px; color: #505d4f; font-size: .87rem; line-height: 1.6; }
.activity-card .button { min-height: 45px; padding: 11px 17px; font-size: .8rem; }
.activity-art { position: relative; min-width: 0; }
.activity-art img { display: block; width: 100%; height: auto; }
.activity-art figcaption { margin-top: 4px; color: #657160; font-size: .63rem; text-align: center; }
.activity-art figure { margin: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-heading h2 { font-size: 1.8rem; }
.section-heading .text-link { flex-shrink: 0; font-size: .82rem; }
.section-heading p { margin-top: 9px; color: var(--wcys-muted); font-size: .95rem; }
.catalogue-section { position: relative; padding-block: 48px 0; }
.empty-state { display: grid; grid-template-columns: 265px minmax(0, 1fr); align-items: center; gap: 42px; min-height: 240px; padding: 26px 52px; border: 1px solid var(--wcys-line); border-radius: var(--wcys-radius-card); background: var(--wcys-surface); }
.empty-art img { display: block; width: 100%; }
.empty-copy { max-width: 580px; }
.empty-copy .eyebrow { margin-bottom: 8px; }
.empty-copy h2, .empty-copy h3 { margin-bottom: 10px; font-size: 1.5rem; }
.empty-copy p { max-width: 600px; color: var(--wcys-muted); font-size: .91rem; line-height: 1.75; }
.empty-copy .status-pill { margin-top: 17px; }
.empty-copy .text-link { margin-top: 9px; font-size: .85rem; }
.format-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.5fr); align-items: center; gap: 64px; padding-block: 63px 75px; }
.format-intro h2 { margin-bottom: 14px; }
.format-intro p { max-width: 330px; color: var(--wcys-muted); font-size: .91rem; }
.format-intro .text-link { margin-top: 10px; font-size: .82rem; }
.format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.format-card { position: relative; padding-left: 24px; border-left: 1px solid #d8ddcc; }
.format-card h3 { margin: 12px 0 10px; font-size: 1.1rem; }
.format-card p { color: var(--wcys-muted); font-size: .85rem; }
.format-icon { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 14px; background: #eeeedf; color: #526a4b; }
.format-icon svg { width: 23px; height: 23px; }
.format-card .status-pill { margin-top: 12px; background: transparent; padding-left: 0; color: #65705d; font-size: .65rem; }

/* Catalogues, available puzzle cards and editorial pages. */
.page-hero { position: relative; max-width: 840px; padding-block: 48px 31px; }
.page-hero h1 { max-width: 850px; margin-bottom: 19px; font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
.page-hero > p, .page-hero .lead { max-width: 720px; color: var(--wcys-muted); font-size: 1.04rem; }
.page-hero .badge { margin-bottom: 16px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 29px; color: #65715f; font-size: .76rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs + .page-hero { padding-top: 18px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filter-bar a, .filter-bar button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 9px 18px; border: 1px solid #d9dece; border-radius: 100px; background: transparent; color: #4f6148; font-size: .87rem; font-weight: 550; text-decoration: none; }
.filter-bar .is-active, .filter-bar [aria-current="true"], .filter-bar [aria-pressed="true"] { border-color: var(--wcys-ink); background: var(--wcys-ink); color: #fffdf3; }
.filter-bar a:hover, .filter-bar button:hover { border-color: #657f53; }
.puzzle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 40px; }
.puzzle-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--wcys-line); border-radius: 21px; background: var(--wcys-surface); box-shadow: var(--wcys-shadow); transition: transform .16s, box-shadow .16s; }
.puzzle-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgb(39 59 50 / 9%); }
.puzzle-card > a { display: block; height: 100%; text-decoration: none; }
.puzzle-card .puzzle-image, .puzzle-card .card-image, .puzzle-card > a > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #efefdf; }
.puzzle-card.demo-card .puzzle-image, .puzzle-card.demo-card .card-image, .puzzle-card.demo-card > a > img { padding: 20px; object-fit: contain; background: #f5edd8; }
.puzzle-card.demo-card:nth-child(even) .puzzle-image, .puzzle-card.demo-card:nth-child(even) .card-image, .puzzle-card.demo-card:nth-child(even) > a > img { background: #e6eff0; }
.puzzle-card .card-content, .puzzle-card .puzzle-card-body, .puzzle-card .puzzle-copy { padding: 21px 22px 23px; }
.puzzle-card h2, .puzzle-card h3 { margin: 12px 0 8px; font-size: 1.25rem; }
.puzzle-card p { margin-top: 8px; color: var(--wcys-muted); font-size: .84rem; }
.puzzle-card .badge { background: #eee5d4; color: #73552a; }
.puzzle-card .badge.blue { background: #e0eef1; color: #3d6470; }
.puzzle-card .demo-badge { position: absolute; top: 15px; left: 15px; padding: 5px 9px; border-radius: 6px; background: #fffdf3; }
.card-footer, .puzzle-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; color: var(--wcys-muted); font-size: .75rem; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 25px; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--wcys-line); border-radius: 50%; text-decoration: none; }
.pagination .current { background: var(--wcys-ink); color: white; }
.catalogue-footer, .category-footer { margin-block: 35px 70px; }
.editorial-card { width: min(860px, 100%); margin-bottom: 70px; padding: 40px 48px; border: 1px solid var(--wcys-line); border-radius: var(--wcys-radius-card); background: var(--wcys-surface); }
.prose { max-width: 760px; overflow-wrap: anywhere; color: #4f5f4c; }
.prose > * + * { margin-top: 21px; }
.prose h2 { margin-top: 36px; color: var(--wcys-ink); font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 28px; color: var(--wcys-ink); font-size: 1.15rem; }
.prose p, .prose li { font-size: .97rem; line-height: 1.85; }
.prose li + li { margin-top: 8px; }
.prose a { color: #516b3e; }
.prose code { padding: 2px 5px; border-radius: 4px; background: #f1f0e6; font-size: .85em; }
.notice { padding: 20px 24px; border-left: 3px solid #9fae88; border-radius: 0 14px 14px 0; background: #eef0e5; color: #536149; font-size: .9rem; }
.notice strong { color: #334a32; }
.puzzle-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 30px; margin-bottom: 70px; }
.game-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 410px; padding: 32px; border: 1px solid var(--wcys-line); border-radius: var(--wcys-radius-card); background: #f0f0e3; text-align: center; }
.game-placeholder img { width: min(420px, 90%); max-height: 300px; object-fit: contain; }
.game-placeholder h2 { margin-top: 20px; font-size: 1.45rem; }
.game-placeholder p { max-width: 490px; margin-top: 11px; color: var(--wcys-muted); font-size: .9rem; }
.game-placeholder .badge { margin-top: 16px; }
.puzzle-sidebar { padding: 26px; border: 1px solid var(--wcys-line); border-radius: 22px; background: var(--wcys-surface); }
.puzzle-sidebar h2, .puzzle-sidebar h3 { margin-bottom: 15px; font-size: 1.2rem; }
.puzzle-sidebar p { color: var(--wcys-muted); font-size: .9rem; }
.puzzle-sidebar .button { margin-top: 20px; }
.puzzle-sidebar > * + * { margin-top: 19px; }
.puzzle-content { margin-top: 30px; }
.error-page { padding-block: 70px 90px; text-align: center; }
.error-page img { width: 150px; margin-bottom: 20px; }
.error-page p { max-width: 480px; margin: 18px auto 25px; color: var(--wcys-muted); }

/* Quiet footer and the optional, locally remembered Pip discovery. */
.site-footer { margin-top: 40px; padding-top: 47px; background: #eeefe3; }
.footer-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 65px; padding-bottom: 35px; }
.footer-brand .brand .logo-mark { width: 39px; height: 39px; }
.footer-brand .brand .brand-name { font-size: 1.04rem; }
.footer-brand > p { max-width: 330px; margin-top: 17px; color: var(--wcys-muted); font-size: .85rem; }
.footer-links { display: flex; justify-content: flex-end; align-content: flex-start; flex-wrap: wrap; gap: 0 27px; padding-top: 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #4e6049; font-size: .82rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; min-height: 85px; padding-block: 16px; border-top: 1px solid #d8ddcf; color: #64705c; font-size: .71rem; }
.footer-bottom .language-switcher { border-color: #d4dacb; }
.footer-bottom .language-switcher a { min-height: 38px; }
.footer-bottom .language-switcher a[aria-current] { background: #dce4d2; }
.footer-pip { display: flex; align-items: center; gap: 10px; margin-top: 17px; color: #53644a; font-size: .77rem; }
.footer-pip > img { width: 32px; }
.pip-score, [data-pip-count] { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 28px; padding-inline: 8px; border-radius: 100px; background: #e2e7d5; font-weight: 700; }
.pip-reset { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 5px; border: 0; background: transparent; color: #58684d; font-size: .72rem; text-decoration: underline; text-underline-offset: 4px; }
.pip-hidden { position: absolute; z-index: 2; top: -103px; right: 62px; display: flex; align-items: flex-end; justify-content: center; width: 70px; height: 76px; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: transparent; transform: rotate(8deg); transition: transform .25s; }
.pip-hidden img { width: 64px; max-height: 72px; object-fit: contain; }
.pip-hidden:hover { transform: rotate(0deg) translateY(-4px); }
.pip-hidden.is-found { transform: rotate(0deg); }
.pip-hidden.is-found::after { content: "✓"; position: absolute; top: 10px; right: -6px; display: flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; background: #496847; color: #fff; font-size: 12px; }
.pip-hidden.is-found img { opacity: .7; }
.toast { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 20px; width: min(410px, calc(100% - 32px)); padding: 17px 16px 17px 22px; border: 1px solid #d3ddc5; border-radius: 18px; background: #fbfcf4; box-shadow: 0 12px 40px rgb(39 59 50 / 15%); font-size: .9rem; }
.toast p { flex: 1; }
.toast-close, .dialog-close { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 8px; border: 1px solid var(--wcys-line); border-radius: 50%; background: transparent; font-size: 1.35rem; }

/* Native dialog preserves focus, Escape handling and a restrained mobile footprint. */
.music-dialog { width: min(430px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 27px; overflow: auto; border: 1px solid var(--wcys-line); border-radius: 24px; background: var(--wcys-bg); color: var(--wcys-ink); box-shadow: 0 20px 80px rgb(22 37 28 / 20%); }
.music-dialog::backdrop { background: rgb(35 49 38 / 32%); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 1.4rem; }
.music-dialog p { margin-top: 12px; color: var(--wcys-muted); font-size: .9rem; }
.music-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-block: 22px; }
.music-controls button { min-width: 46px; min-height: 46px; padding: 8px 14px; border: 1px solid #cdd6bf; border-radius: 100px; background: #e8ecdc; }
.music-controls .music-play { background: var(--wcys-ink); color: #fff; }
.music-dialog label { display: block; margin-top: 18px; font-size: .85rem; }
.music-dialog input[type="range"] { width: 100%; min-height: 44px; margin: 0; accent-color: #536c45; }
.music-dialog .music-credits { display: block; margin-top: 18px; font-size: .75rem; }
.music-track { padding: 20px; border-radius: 16px; background: #eeeedf; }
.music-track strong { display: block; font-size: 1.02rem; }
.music-track small { color: var(--wcys-muted); }

@media (min-width: 1500px) {
  .hero { padding-block: 58px 45px; }
  .activity-card { min-height: 300px; }
}
@media (max-width: 1100px) {
  .header-inner { gap: 20px; }
  .site-nav { gap: 20px; }
  .site-nav ul { gap: 20px; }
  .site-nav > a, .site-nav li > a { font-size: .82rem; }
  .brand .logo-mark { width: 44px; height: 44px; }
  .brand .brand-name { font-size: 1.05rem; }
  .hero { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 15px; }
  .hero h1 { font-size: 3.45rem; }
  .pip-hero { width: 190px; }
  .pip-note { max-width: 155px; font-size: .78rem; }
  .hero-pip::before { width: 185px; height: 185px; }
  .activity-card { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); padding: 25px 15px 25px 25px; }
  .activity-card h2 { font-size: 1.5rem; }
  .activity-card p { font-size: .83rem; }
  .format-section { gap: 35px; }
  .format-grid { gap: 22px; }
}
@media (max-width: 900px) {
  .container { width: calc(100% - 44px); }
  .header-inner { min-height: 80px; flex-wrap: wrap; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions { margin-left: auto; gap: 10px; }
  .header-actions + .nav-toggle { margin-left: 0; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 15px; max-height: calc(100dvh - 110px); padding: 23px; overflow-y: auto; border-top: 1px solid var(--wcys-line); border-bottom: 1px solid #d3dcc8; background: var(--wcys-bg); box-shadow: 0 15px 25px rgb(39 59 50 / 8%); }
  .site-nav.is-open, .site-nav[data-open="true"], .site-header.menu-open .site-nav, .nav-toggle[aria-expanded="true"] ~ .site-nav { display: flex; }
  .site-nav ul { align-items: stretch; flex-direction: column; gap: 5px; }
  .site-nav > a, .site-nav li > a { display: flex; min-height: 48px; padding: 7px 12px; border-radius: 10px; font-size: 1rem; }
  .site-nav > a:hover, .site-nav li > a:hover { background: #eeefe4; }
  .site-nav .language-switcher { align-self: flex-start; margin-top: 8px; }
  .language-switcher a { min-width: 44px; min-height: 44px; }
  .header-actions > .language-switcher { display: none; }
  .hero { padding-block: 35px 30px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-description { font-size: 1rem; }
  .hero-pip { flex-direction: column; gap: 0; }
  .pip-hero { width: 180px; }
  .pip-note { max-width: 210px; margin-top: 4px; font-size: .78rem; text-align: center; }
  .hero-pip::before { left: 50%; top: 0; transform: translateX(-50%); width: 178px; height: 178px; }
  .activity-grid { gap: 18px; }
  .activity-card { grid-template-columns: 1fr; padding: 25px; }
  .activity-card h2 { font-size: 1.58rem; }
  .activity-card p { max-width: none; font-size: .88rem; }
  .activity-art { width: min(240px, 100%); margin: 10px auto -3px; }
  .activity-icon { float: right; margin: 0 0 10px 10px; width: 30px; }
  .empty-state { grid-template-columns: 200px minmax(0, 1fr); gap: 25px; padding: 25px; }
  .format-section { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 60px; }
  .format-intro p { max-width: 570px; }
  .format-grid { gap: 40px; }
  .puzzle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puzzle-layout { grid-template-columns: 1fr; }
  .puzzle-sidebar { max-width: none; }
  .footer-main { gap: 30px; }
  .footer-links { gap: 0 18px; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 36px); }
  .demo-banner { padding: 6px 13px; font-size: .65rem; }
  .header-inner { min-height: 76px; gap: 12px; }
  .brand { gap: 9px; }
  .brand .logo-mark { width: 43px; height: 43px; }
  .brand .brand-name { font-size: 1.04rem; }
  .header-actions { gap: 8px; }
  .music-trigger { width: 44px; padding: 10px; }
  .music-trigger .music-label { display: none; }
  .hero { display: block; padding-block: 31px 25px; }
  .hero .eyebrow { margin-bottom: 13px; font-size: .64rem; letter-spacing: .13em; }
  .hero h1 { margin-bottom: 16px; font-size: clamp(2.15rem, 9.4vw, 3.1rem); letter-spacing: -.045em; line-height: 1.12; }
  .hero-description { font-size: 1rem; line-height: 1.65; }
  .hero-links { gap: 2px 19px; margin-top: 8px; font-size: .79rem; }
  .hero-pip { display: flex; flex-direction: row; justify-content: flex-start; gap: 14px; margin-top: 14px; padding: 10px 16px 10px 8px; border: 1px solid #e7e7d7; border-radius: 17px; background: #f2f2e6; }
  .hero-pip::before { display: none; }
  .pip-hero { width: 73px; }
  .pip-note { max-width: none; margin: 0; font-size: .76rem; line-height: 1.5; text-align: left; }
  .pip-note p { margin-bottom: 0; }
  .pip-note .text-button { min-height: 44px; font-size: .8rem; }
  .activity-grid { grid-template-columns: 1fr; gap: 16px; }
  .activity-card { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 0; min-height: 249px; padding: 23px 13px 23px 23px; border-radius: 22px; }
  .activity-icon { float: none; width: 28px; height: 28px; margin-bottom: 10px; }
  .activity-icon svg { width: 27px; height: 27px; }
  .activity-card h2 { font-size: 1.4rem; letter-spacing: -.04em; }
  .activity-card p { margin-bottom: 16px; font-size: .86rem; line-height: 1.5; }
  .activity-card .button { gap: 9px; min-height: 44px; padding: 10px 13px; font-size: .75rem; }
  .activity-art { width: 100%; margin: 0; }
  .activity-art img { width: 100%; }
  .activity-art figcaption { font-size: .6rem; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 2px; margin-bottom: 17px; }
  .section-heading h2 { font-size: 1.6rem; }
  .section-heading .text-link { font-size: .8rem; }
  .catalogue-section { padding-top: 35px; }
  .empty-state { display: flex; flex-direction: column; gap: 5px; padding: 23px; border-radius: 22px; text-align: center; }
  .empty-art { width: 195px; }
  .empty-copy h2, .empty-copy h3 { font-size: 1.35rem; }
  .empty-copy p { font-size: .9rem; line-height: 1.7; }
  .empty-copy .eyebrow { font-size: .64rem; }
  .empty-copy .status-pill { margin-inline: auto; }
  .format-section { padding-block: 38px 54px; }
  .format-intro h2 { font-size: 1.6rem; }
  .format-grid { grid-template-columns: 1fr; gap: 25px; }
  .format-card { padding-left: 20px; }
  .format-card h3 { margin-top: 10px; }
  .format-card p { font-size: .9rem; }
  .format-icon { width: 40px; height: 40px; border-radius: 12px; }
  .page-hero { padding-block: 34px 26px; }
  .page-hero h1 { font-size: 2.3rem; }
  .page-hero > p, .page-hero .lead { font-size: 1rem; }
  .breadcrumbs { margin-top: 15px; font-size: .71rem; }
  .filter-bar { gap: 8px; margin-bottom: 24px; }
  .filter-bar a, .filter-bar button { padding: 9px 14px; font-size: .79rem; }
  .puzzle-grid { grid-template-columns: 1fr; gap: 20px; }
  .puzzle-card .puzzle-image, .puzzle-card .card-image, .puzzle-card > a > img { aspect-ratio: 16 / 10; }
  .editorial-card { margin-bottom: 50px; padding: 25px 22px; border-radius: 22px; }
  .prose p, .prose li { font-size: 1rem; line-height: 1.8; }
  .prose h2 { font-size: 1.35rem; }
  .game-placeholder { min-height: 330px; padding: 22px; border-radius: 22px; }
  .game-placeholder img { width: 100%; }
  .game-placeholder h2 { font-size: 1.3rem; }
  .puzzle-layout { gap: 22px; margin-bottom: 50px; }
  .puzzle-sidebar { padding: 22px; }
  .site-footer { margin-top: 35px; padding-top: 35px; }
  .footer-main { display: block; padding-bottom: 25px; }
  .footer-brand > p { max-width: 290px; font-size: .83rem; }
  .footer-links { justify-content: flex-start; gap: 1px 22px; margin-top: 22px; padding-top: 0; }
  .footer-links a { font-size: .8rem; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 20px; font-size: .68rem; }
  .footer-bottom .language-switcher a { min-width: 44px; min-height: 44px; }
  .pip-hidden { top: -91px; right: 16px; width: 64px; height: 67px; }
  .pip-hidden img { width: 58px; }
  .toast { right: 16px; bottom: 16px; gap: 12px; padding: 14px 12px 14px 18px; font-size: .85rem; }
  .music-dialog { padding: 23px; }
  .dialog-heading h2 { font-size: 1.3rem; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 30px); }
  .brand .brand-name { font-size: .96rem; }
  .brand .logo-mark { width: 37px; height: 37px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 5px; }
  .hero h1 { font-size: 2rem; }
  .hero-links { gap: 0 13px; font-size: .74rem; }
  .hero-pip { gap: 9px; padding-right: 10px; }
  .pip-hero { width: 61px; }
  .activity-card { grid-template-columns: 1fr; min-height: 0; padding: 23px; }
  .activity-copy { order: 1; }
  .activity-icon { float: right; margin-left: 8px; }
  .activity-card h2 { max-width: 210px; font-size: 1.5rem; }
  .activity-card p { font-size: .95rem; }
  .activity-art { order: 2; width: 190px; margin: 14px auto -4px; }
  .activity-card .button { font-size: .85rem; }
  .page-hero h1 { font-size: 2rem; }
  .editorial-card { padding: 23px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .hero-pip, .music-dialog, .toast, .demo-banner, .filter-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .container { width: 100%; }
  .hero { padding-top: 0; }
  .button, .text-link { color: #000; }
  .activity-card, .puzzle-card, .editorial-card { break-inside: avoid; box-shadow: none; }
}

/* Shared template integration. */
.header-navigation { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-toggle span:not(.sr-only) { height: auto; width: auto; margin: 0; background: none; font-size: 1.35rem; line-height: 1; }
.hero-pip .pip-hero { order: -1; }
.puzzle-image { position: relative; }
.puzzle-image > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.puzzle-card-copy { padding: 22px; }
.puzzle-card-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--wcys-muted); font-size: .85rem; }
.puzzle-card .badge-difference { background: var(--wcys-blue); color: #334c59; }
.puzzle-downloads { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.parent-note { margin-block: 24px 56px; }
.pip-preferences { margin-top: 10px; max-width: 340px; font-size: .78rem; color: #4f6049; }
.pip-preferences summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.pip-preferences p { margin-top: 8px; }
.custom-logo { width: auto; max-width: 210px; max-height: 60px; }
.activity-card p { font-size: 1rem; }
.activity-icon { font-size: 2rem; line-height: 1; }
.catalogue-section { padding-top: calc(var(--wcys-spacing, 64px) * .75); }
.format-section { padding-block: var(--wcys-spacing, 64px) calc(var(--wcys-spacing, 64px) * 1.17); }
.language-switcher a, .footer-bottom .language-switcher a { min-width: 44px; min-height: 44px; }
.activity-card p, .format-card p, .format-intro p, .empty-copy p, .game-placeholder p, .puzzle-sidebar p, .prose p, .prose li { font-size: 1rem; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; margin: 0; }
.error-page { margin-inline: auto; }
@media (max-width: 900px) {
  .header-navigation { margin-left: 0; gap: 12px; flex: 1 0 100%; flex-direction: column; align-items: stretch; padding-bottom: 18px; }
  .js .header-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 22px; background: var(--wcys-bg); border-bottom: 1px solid var(--wcys-line); box-shadow: var(--wcys-shadow); }
  .js .header-navigation.is-open { display: flex; }
  .header-navigation .site-nav { position: static; display: flex; max-height: none; margin: 0; padding: 0; border: 0; box-shadow: none; }
  .header-navigation .language-switcher { align-self: flex-start; }
  .language-switcher a { min-height: 44px; min-width: 44px; }
}

/* Optional classical music: quiet entry point, tactile listening panel. */
.music-trigger { gap: 9px; padding: 5px 12px 5px 5px; border-color: #e8d797; background: #f9edc8; flex-shrink: 0; }
.music-trigger-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #f1d777; font-size: 1.2rem; }
.music-trigger-label { font-size: .8rem; font-weight: 650; }
.music-equalizer { display: flex; gap: 2px; align-items: center; height: 16px; }
.music-equalizer i { display: block; width: 2px; height: 3px; border-radius: 2px; background: #566b47; }
.music-trigger.is-playing .music-equalizer i { animation: wcys-wave .8s ease-in-out infinite alternate; }
.music-trigger.is-playing .music-equalizer i:nth-child(2) { animation-delay: -.4s; }
.music-trigger.is-playing .music-equalizer i:nth-child(3) { animation-delay: -.2s; }
@keyframes wcys-wave { from { height: 4px; } to { height: 15px; } }
.music-dialog { width: min(448px, calc(100% - 32px)); padding: 25px 30px 22px; border: 1px solid #e4e2d5; background: #fbf9f2; }
.music-dialog .dialog-heading { margin-bottom: 17px; gap: 12px; }
.music-dialog .dialog-heading .eyebrow { margin: 0; color: #5c704f; font-size: .62rem; letter-spacing: .1em; }
.music-dialog .dialog-close { width: 38px; height: 38px; min-width: 44px; min-height: 44px; background: #f0f0e5; border-color: transparent; }
.music-artwork { display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; height: 188px; border-radius: 20px; background: #e9eddf; }
.music-artwork::after { content: ""; position: absolute; width: 250px; height: 150px; right: -64px; bottom: -80px; border-radius: 50%; background: #d6dfc4; z-index: -1; }
.music-orbit { position: absolute; border: 1px solid #d7dfc9; border-radius: 50%; width: 240px; height: 240px; transform: rotate(-25deg); }
.music-orbit.orbit-two { width: 300px; height: 150px; transform: rotate(30deg); }
.music-record { display: grid; place-items: center; width: 142px; height: 142px; border-radius: 50%; background: repeating-radial-gradient(circle, #314c40 0 2px, #3b5546 3px 4px, #314c40 5px 7px); box-shadow: 0 9px 18px #34493726; }
.music-record img { width: 63px; height: 63px; padding: 9px; border-radius: 50%; background: #f4dd9a; object-fit: contain; }
.music-star { position: absolute; top: 24px; right: 42px; color: #9f8140; font-size: 1.6rem; }
.music-dialog.is-playing .music-record { animation: wcys-record 18s linear infinite; }
@keyframes wcys-record { to { transform: rotate(360deg); } }
.music-dialog .music-track { padding: 19px 0 11px; background: transparent; text-align: center; }
.music-dialog .music-track strong { font-size: 1.55rem; font-weight: 750; line-height: 1.25; letter-spacing: -.03em; }
.music-dialog .music-track small { display: block; margin-top: 7px; font-size: .8rem; }
.music-dialog input[type="range"] { min-height: 30px; accent-color: #456545; }
.music-time { display: flex; justify-content: space-between; margin-top: -4px; color: #66735f; font: .68rem/1.5 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.music-dialog .music-controls { margin: 12px 0 0; gap: 26px; }
.music-dialog .music-controls .music-play { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; padding: 0; background: #304b3b; border: 0; box-shadow: 0 7px 18px #304b3b26; transition: transform .15s, background .15s; }
.music-dialog .music-play:hover { background: #456544; transform: translateY(-2px); }
.music-play-icon { display: block; margin-left: 5px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fffdf4; }
.music-dialog.is-playing .music-play-icon { width: 16px; height: 20px; margin-left: 0; border: 0; border-left: 5px solid #fffdf4; border-right: 5px solid #fffdf4; }
.music-dialog p.music-state { margin-top: 7px; font-size: .73rem; text-align: center; color: #456044; }
.music-volume-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; align-items: center; gap: 13px; margin-top: 16px; }
.music-volume-row button { min-height: 44px; padding: 7px 10px; border: 1px solid #dfe3d5; border-radius: 12px; background: transparent; font-size: .72rem; }
.music-volume-row input { margin: 0; }
.music-volume-row .music-repeat { padding: 0; font-size: 1.6rem; }
.music-volume-row .music-repeat[aria-pressed="true"] { border-color: #c9d6bc; background: #e5eddb; color: #385832; }
.music-dialog p.music-resume-note { margin-top: 16px; padding-top: 14px; border-top: 1px solid #e1e3d8; font-size: .72rem; line-height: 1.65; color: #64705e; }
.music-dialog .music-credits { margin-top: 4px; font-size: .73rem; }
.music-credits summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.music-credits p { font-size: .74rem; }
.music-credits a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 15px; font-size: .72rem; overflow-wrap: anywhere; }
.music-noscript { padding: 24px; }
@media (max-width: 900px) {
  .header-inner .music-trigger { order: 1; margin-left: auto; }
  .header-inner .nav-toggle { order: 2; margin-left: 0; }
  .header-navigation { order: 3; }
}
@media (max-width: 600px) {
  .music-trigger { width: 44px; height: 44px; padding: 0; border: 0; }
  .music-trigger-icon { width: 44px; height: 44px; }
  .music-trigger-label, .music-equalizer { display: none; }
  .music-trigger.is-playing .music-trigger-icon { background: #dbe7c9; }
  .music-dialog { padding: 18px 22px; }
  .music-artwork { height: 163px; }
  .music-record { width: 126px; height: 126px; }
  .music-dialog .music-track strong { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .music-record, .music-equalizer i { animation: none !important; }
}
.music-dialog input[type="range"] { min-height: 44px; }
