/* =========================================================
   Pixel Petals — styles
   Editorial palette: dusty rose and sage on warm cream,
   slate mauve ink. Brand colours are for fills only; the
   "-deep" / "-ink" shades are the text-safe (WCAG AA) versions.
   After editing this file, bump ?v= in every page's <link>.
   ========================================================= */
:root {
  /* brand */
  --rose: #D4A3B3;        /* accent: fills, rules, tints — not for text */
  --sage: #A8BFA1;        /* secondary: fills, tints — not for text */
  --cream: #F4EEE8;       /* page background */
  --mauve: #594A4E;       /* text + dark UI (8.35:1 on white) */
  --white: #FFFFFF;       /* cards */

  /* text-safe shades */
  --rose-deep: #8F5467;   /* links, category labels, Saved (5.78:1 on white, 5.02 on cream) */
  --rose-ink: #7A4456;    /* link + button hover (7.53:1) */
  --sage-deep: #4F6849;   /* Download button ONLY (white text 6.16:1) */
  --sage-ink: #3F5639;    /* Download hover (8.07:1) */
  --muted: #6E6064;       /* dates, excerpts, meta (5.97:1 / 5.18 on cream) */

  /* neutrals */
  --line: #E4D9D0;        /* hairlines */
  --ad-bg: #ECE6E0;       /* advertisement panels: neutral, never a brand colour */
  --tint-rose: color-mix(in srgb, var(--rose) 22%, white);
  --tint-sage: color-mix(in srgb, var(--sage) 26%, white);

  --f-display: Georgia, "Times New Roman", Times, serif;
  --f-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --r-card: 10px;
  --r-ui: 8px;
  --shadow-hover: 0 10px 28px -18px rgba(89, 74, 78, .45);
  --gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; } /* #anchor jumps land below the sticky header */
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mauve);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--rose-ink); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -.01em; color: var(--mauve); }
:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }

/* small-caps label used for categories, eyebrows, "Advertisement" */
.eyebrow, .chip {
  display: inline-block;
  font: 600 .72rem/1.3 var(--f-body);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--rose-deep);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .95rem/1 var(--f-body); letter-spacing: .01em;
  padding: 13px 22px; border-radius: var(--r-ui); border: 1px solid var(--mauve);
  background: var(--mauve); color: var(--white); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--rose-ink); border-color: var(--rose-ink); color: var(--white); }
.btn-ghost { background: transparent; color: var(--mauve); }
.btn-ghost:hover { background: var(--white); color: var(--mauve); border-color: var(--mauve); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 238, 232, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
/* logo left · nav centred · tools right */
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 72px; }
.logo {
  justify-self: start;
  font: 400 1.55rem/1 var(--f-display); letter-spacing: -.01em;
  color: var(--mauve); text-decoration: none; white-space: nowrap;
}
.logo:hover { color: var(--mauve); }
.nav-list, .menu, .flyout { list-style: none; margin: 0; padding: 0; }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  font: 400 .96rem/1 var(--f-body); color: var(--mauve); text-decoration: none;
  padding: 10px 0; white-space: nowrap; border: 0; border-bottom: 1px solid transparent;
  background: none; cursor: pointer;
}
.nav-link:hover { border-bottom-color: var(--rose); color: var(--mauve); }
.nav-link[aria-current="page"], .nav-btn[data-current="true"] { border-bottom: 2px solid var(--rose-deep); }
.chev { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.nav-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Games dropdown + game flyout (desktop) */
.menu, .flyout {
  display: none; position: absolute; z-index: 30; min-width: 230px; padding: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 18px 40px -22px rgba(89, 74, 78, .5);
}
.menu { top: calc(100% + 10px); left: 50%; translate: -50% 0; }
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.flyout { top: -9px; left: calc(100% + 8px); }
.flyout::before { content: ""; position: absolute; top: 0; bottom: 0; left: -10px; width: 10px; }
[aria-expanded="true"] + .menu, [aria-expanded="true"] + .flyout { display: block; }
.has-flyout { position: relative; }
.menu-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 6px; background: none; cursor: pointer;
  font: 400 .94rem/1.2 var(--f-body); color: var(--mauve); text-decoration: none; text-align: left; white-space: nowrap;
}
.menu-link:hover, .menu-btn[aria-expanded="true"] { background: var(--cream); color: var(--mauve); }
.menu-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.soon-tag { font: 600 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.header-tools { justify-self: end; display: flex; align-items: center; gap: 10px; }
.icon-link {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-ui); border: 1px solid var(--line); background: var(--white); color: var(--mauve); cursor: pointer;
}
.icon-link:hover { border-color: var(--mauve); color: var(--mauve); }
.icon-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }
html.no-scroll { overflow: hidden; }

/* Home: transparent over the photo, solid once scrolled past it */
.site-header.over-hero { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .25s ease, border-color .25s ease; }
.over-hero:not(.is-solid) .logo,
.over-hero:not(.is-solid) .nav-list > li > .nav-link { color: var(--white); }
.over-hero:not(.is-solid) .nav-link:hover { border-bottom-color: rgba(255, 255, 255, .7); }
.over-hero:not(.is-solid) .nav-link[aria-current="page"] { border-bottom-color: var(--white); }
.over-hero:not(.is-solid) .icon-link { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .55); color: var(--white); }
/* white rings only on things sitting directly on the photo; the white dropdown keeps the rose ring */
.over-hero:not(.is-solid) .logo:focus-visible,
.over-hero:not(.is-solid) .nav-list > li > .nav-link:focus-visible,
.over-hero:not(.is-solid) .icon-link:focus-visible { outline-color: var(--white); }
.over-hero.is-solid { background: rgba(244, 238, 232, .96); border-bottom-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#saved-count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; padding: 0 5px; height: 18px;
  border-radius: 999px; background: var(--rose-deep); color: var(--white);
  font: 600 .68rem/18px var(--f-body); text-align: center;
}
#saved-count:empty { display: none; }

/* ---------- search ---------- */
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-ui);
  padding: 4px 4px 4px 14px; width: min(320px, 100%);
}
.search:focus-within { border-color: var(--rose-deep); }
.search svg { width: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 .95rem var(--f-body); color: var(--mauve); padding: 8px 2px;
}
.search input::placeholder { color: var(--muted); }
.search button {
  border: 0; border-radius: 6px; padding: 9px 14px; cursor: pointer;
  font: 500 .88rem/1 var(--f-body); background: var(--mauve); color: var(--white);
}
.search button:hover { background: var(--rose-ink); }
.search-big { width: min(540px, 100%); padding: 6px 6px 6px 18px; }
.search-big input { font-size: 1.02rem; padding: 12px 4px; }
.search-big button { padding: 13px 22px; font-size: .95rem; }

/* ---------- home hero (full-width photo) ---------- */
.hero-photo {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden;
  min-height: max(520px, 72vh); padding: 120px 24px 72px; background: #3A2E31; text-align: center;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* White text must pass 4.5:1 even where the photo is pure white:
   #2B2124 at 64% over white = 4.78:1. The 64% plateau covers the text block;
   only the corners fade to 42%. */
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 75% at 50% 52%, rgba(43, 33, 36, .64) 0 58%, rgba(43, 33, 36, .42) 100%);
}
.hero-content { position: relative; width: min(640px, 100%); color: var(--white); }
.hero-photo h1 { color: var(--white); font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.08; }
.hero-sub { margin: 18px auto 32px; max-width: 46ch; font-size: 1.12rem; color: var(--white); }

/* the hero search: big and rounded; button is rose-deep (never sage, which means Download) */
.search-hero { width: 100%; margin: 0 auto; padding: 7px 7px 7px 22px; border-radius: 999px; border: 0; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); }
.search-hero input { font-size: 1.06rem; padding: 14px 4px; }
.search-hero button { border-radius: 999px; padding: 15px 28px; font-size: 1rem; font-weight: 600; background: var(--rose-deep); }
.search-hero button:hover { background: var(--rose-ink); }

/* ---------- section heads ---------- */
.section { padding: 48px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }
.section-head a { font-size: .92rem; }

.page-head { padding: 56px 0 16px; }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.page-head p { color: var(--muted); font-size: 1.08rem; margin: 12px 0 0; max-width: 60ch; }

/* ---------- filters ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 22px 0 10px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  white-space: nowrap; text-decoration: none; color: var(--mauve);
  font: 400 .9rem/1 var(--f-body); padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
}
.filter:hover { border-color: var(--mauve); color: var(--mauve); }
.filter[aria-current="page"] { background: var(--mauve); border-color: var(--mauve); color: var(--white); }

/* ---------- masonry board ---------- */
.board { columns: 4 240px; column-gap: var(--gap); padding-top: 14px; }
.pin {
  position: relative; break-inside: avoid; margin: 0 0 var(--gap);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  display: inline-block; width: 100%; transition: box-shadow .2s ease;
}
.pin:hover { box-shadow: var(--shadow-hover); }
.pin-link { display: block; color: inherit; text-decoration: none; border-radius: var(--r-card); overflow: hidden; }
.pin-media { background: color-mix(in srgb, var(--c, var(--rose)) 18%, white); overflow: hidden; }
.pin-media img { width: 100%; height: auto; transition: transform .45s ease; }
.pin-link:hover .pin-media img { transform: scale(1.02); }
.pin-body { padding: 16px 18px 18px; }
.pin-body h3 { font-size: 1.12rem; line-height: 1.3; margin: 8px 0 8px; }
.pin-link:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pin-body p {
  margin: 0 0 12px; font-size: .9rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pin-body time { font-size: .8rem; color: var(--muted); }
/* "Download · by X" on pins: a quiet text marker, deliberately not button-shaped */
.pin-dl { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: .8rem; color: var(--mauve); }
.pin-dl svg { width: 14px; flex: none; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pin-quote { padding: 48px 22px 34px; background: color-mix(in srgb, var(--c, var(--rose)) 24%, white); }
.pin-quote p { font: 400 1.4rem/1.25 var(--f-display); margin: 0; color: var(--mauve); }

/* Save: white + outline heart; Saved: solid rose-deep. Never sage (that's Download). */
.save {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); cursor: pointer; border-radius: var(--r-ui); padding: 8px 12px;
  font: 500 .82rem/1 var(--f-body); background: var(--white); color: var(--mauve);
  opacity: 0; transform: translateY(-3px); transition: opacity .15s, transform .15s, background .15s;
}
.save svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.save:hover { border-color: var(--mauve); }
.save[aria-pressed="true"] { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--white); opacity: 1; transform: none; }
.save[aria-pressed="true"] svg { fill: currentColor; }
.pin:hover .save, .save:focus-visible { opacity: 1; transform: none; }
@media (hover: none) { .save { opacity: 1; transform: none; } }
.save.pop svg { animation: pop .3s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }

/* Advertisement: neutral panel, labelled, never styled like a pin or a download */
.ad {
  break-inside: avoid; display: block; margin: 0 0 var(--gap);
  background: var(--ad-bg); border-top: 1px dashed #BFB2A8; border-bottom: 1px dashed #BFB2A8;
  padding: 10px 12px 14px;
}
.ad-label {
  display: block; margin: 0 0 8px;
  font: 600 .68rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ad-article { margin: 40px 0; }

.more-wrap { display: flex; justify-content: center; padding: 20px 0 8px; }
.more-wrap[hidden] { display: none; }
.empty {
  text-align: center; padding: 48px 24px; margin: 24px 0; border-radius: var(--r-card);
  background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: 1.02rem;
}

/* ---------- game + board cards ---------- */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.game-card {
  display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 14px; text-decoration: none; color: var(--mauve); transition: box-shadow .2s ease;
}
.game-card:hover { box-shadow: var(--shadow-hover); color: var(--mauve); }
.game-card img { border-radius: var(--r-ui); aspect-ratio: 1; object-fit: cover; }
.game-card h3 { font-size: 1.4rem; }
.game-card p { margin: 6px 0 10px; color: var(--muted); font-size: .93rem; }
.game-card.soon img { filter: grayscale(.4); opacity: .8; }
.badge {
  display: inline-block; font: 600 .68rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 999px; background: var(--tint-sage); color: var(--mauve);
}

.boards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; padding-top: 22px; }
.boards-grid > .empty, .games-grid > .empty { grid-column: 1 / -1; margin: 0; }
.board-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 10px 10px 18px; text-decoration: none; color: var(--mauve); transition: box-shadow .2s ease;
}
.board-card:hover { box-shadow: var(--shadow-hover); color: var(--mauve); }
.board-thumbs {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px;
  aspect-ratio: 16/11; border-radius: var(--r-ui); overflow: hidden; margin-bottom: 14px;
}
.board-thumbs > * { width: 100%; height: 100%; object-fit: cover; background: color-mix(in srgb, var(--c, var(--rose)) 20%, white); }
.board-thumbs > :first-child { grid-row: span 2; }
.board-thumbs > span:nth-child(2) { background: color-mix(in srgb, var(--c, var(--rose)) 32%, white); }
.board-cover { aspect-ratio: 4 / 3; border-radius: var(--r-ui); overflow: hidden; margin-bottom: 14px; background: color-mix(in srgb, var(--c, var(--rose)) 22%, white); }
.board-cover > * { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.board-card:hover .board-cover img { transform: scale(1.02); }
.board-card h3 { font-size: 1.3rem; padding: 0 6px; }
.board-card p { margin: 6px 6px 10px; color: var(--muted); font-size: .93rem; }
.board-count { margin-left: 6px; font: 600 .72rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); }

/* ---------- article ---------- */
.article-wrap { width: min(740px, 100% - 48px); margin: 0 auto; padding: 36px 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose-deep); text-decoration: underline; }
.post-head { padding: 34px 0 28px; }
.post-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); margin: 12px 0 16px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; color: var(--muted); font-size: .92rem; }
.save-lg { position: static; opacity: 1; transform: none; margin-top: 22px; padding: 11px 18px; font-size: .92rem; }
.save-lg svg { width: 16px; }
.post-cover { margin: 0 0 32px; }
/* never crop: tall covers shrink to fit the screen height, wide ones fill the column */
.post-cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 85vh; margin: 0 auto; border-radius: var(--r-card); background: var(--tint-rose); }

/* Download: one consistent component. Sage-deep is reserved for this button. */
.download-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; flex-wrap: wrap;
  padding: 22px 24px; margin: 0 0 36px; border-radius: var(--r-card);
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sage);
}
.download-info { display: grid; gap: 3px; min-width: 0; }
.download-info .eyebrow { color: var(--sage-deep); }
.download-info strong { font: 400 1.25rem/1.3 var(--f-display); color: var(--mauve); }
.download-creator { font-size: .95rem; color: var(--mauve); }
.download-source { font-size: .84rem; color: var(--muted); }
.btn-download {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  font: 600 .98rem/1 var(--f-body); letter-spacing: .01em; text-decoration: none;
  padding: 15px 24px; border-radius: var(--r-ui); background: var(--sage-deep); color: var(--white);
}
.btn-download:hover { background: var(--sage-ink); color: var(--white); }
.btn-download svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.prose { font-size: 1.06rem; line-height: 1.78; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { font-size: 1.7rem; margin-top: 1.9em; }
.prose > h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose img { border-radius: var(--r-card); margin: 0 auto; max-height: 600px; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--rose);
  font: italic 400 1.22rem/1.55 var(--f-display); color: var(--mauve);
}
.prose blockquote p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--rose-deep); }
.prose code { background: var(--white); border: 1px solid var(--line); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.prose pre { background: var(--mauve); color: var(--white); padding: 18px; border-radius: var(--r-ui); overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags a {
  font-size: .86rem; text-decoration: none; color: var(--mauve);
  padding: 7px 13px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
}
.tags a:hover { border-color: var(--mauve); color: var(--mauve); }

/* ---------- about / static ---------- */
.note-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(24px, 5vw, 48px); margin: 20px 0 48px;
}

/* ---------- trust strip (above the footer) ---------- */
.trust-strip { margin-top: 72px; border-top: 1px solid var(--line); background: var(--white); }
.trust-list { list-style: none; margin-block: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--mauve); }
.trust-list svg { width: 22px; flex: none; fill: none; stroke: var(--rose-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- footer ---------- */
.site-footer { background: var(--mauve); color: var(--cream); padding: 48px 0 30px; }
.footer-row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer .logo, .site-footer .logo:hover { color: var(--white); }
.site-footer p { margin: 10px 0 0; color: #E3D9D2; max-width: 44ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-footer nav a { color: var(--cream); text-decoration: none; font-size: .94rem; }
.site-footer nav a:hover { color: var(--white); text-decoration: underline; }
.site-footer .fineprint { max-width: none; font-size: .8rem; margin: 32px auto 0; padding-top: 18px; border-top: 1px solid rgba(244, 238, 232, .18); color: #D6CAC3; }
.site-footer :focus-visible { outline-color: var(--cream); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .wrap { width: min(1240px, 100% - 32px); }

  /* phones: logo + icons in the bar, menu slides down as a panel */
  .header-row { grid-template-columns: 1fr auto; min-height: 64px; gap: 12px; }
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - 64px); overflow-y: auto;
    background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(89, 74, 78, .6);
  }
  .nav-open .main-nav { display: block; animation: slide-down .2s ease; }
  .nav-open.over-hero { background: var(--cream); border-bottom-color: var(--line); }
  .nav-open.over-hero .logo, .nav-open.over-hero .nav-list > li > .nav-link { color: var(--mauve); }
  .nav-open.over-hero .icon-link { background: var(--white); border-color: var(--line); color: var(--mauve); }
  .nav-open.over-hero .logo:focus-visible, .nav-open.over-hero .nav-link:focus-visible, .nav-open.over-hero .icon-link:focus-visible { outline-color: var(--rose-deep); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: min(1240px, 100% - 32px); margin: 0 auto; padding: 8px 0 16px; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 0; font-size: 1.05rem; border-bottom: 0; }
  .nav-link[aria-current="page"], .nav-btn[data-current="true"] { border-bottom: 0; color: var(--rose-deep); }
  .menu, .flyout { position: static; translate: none; min-width: 0; padding: 0 0 8px 12px; border: 0; box-shadow: none; background: none; }
  .menu::before, .flyout::before { display: none; }
  .menu-btn .chev { transform: rotate(90deg); }
  .menu-btn[aria-expanded="true"] .chev { transform: rotate(-90deg); }
  .menu-link { padding: 12px 8px; font-size: 1rem; }

  .hero-photo { min-height: 560px; padding: 104px 16px 56px; }
  .hero-overlay { background: rgba(43, 33, 36, .64); } /* uniform on phones: text spans the full width */
  .trust-list { grid-template-columns: 1fr; padding: 22px 0; }
  .board { columns: 2 150px; --gap: 14px; }
  .pin-body { padding: 12px 12px 14px; }
  .pin-body h3 { font-size: 1rem; }
  .pin-quote { padding: 34px 14px 24px; }
  .pin-quote p { font-size: 1.15rem; }
  .section { padding: 36px 0; }
  .page-head { padding: 40px 0 12px; }
  .article-wrap { width: min(740px, 100% - 32px); }
}
@media (max-width: 420px) {
  .game-card { grid-template-columns: 84px 1fr; gap: 14px; }
  .search-big button { padding: 12px 14px; }
  .search-hero { padding-left: 16px; }
  .search-hero button { padding: 14px 18px; }
  .download-card { padding: 18px; }
  .btn-download { width: 100%; justify-content: center; }
}
@keyframes slide-down { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- overflow guards ---------- */
.chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: top; }
