/* po1.games hub: "the toy shelf".
   Cream paper wall, honey-pine shelves, tomato-red price tags. Each game card
   picks up its own colour from --game (set inline per <li>). */

/* Self-hosted fonts (SIL OFL 1.1, licences in /fonts/). No requests go to
   Google Fonts, so no visitor IP reaches a third party before consent. */
@font-face {
  font-family: "Bagel Fat One"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/bagel-fat-one-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --wall: #f3e8d2;
  --wall-2: #ead9b8;
  --grain: rgba(120, 80, 30, 0.07);
  --surface: #fffaf0;
  --ink: #2b2118;
  --muted: #6e5f4a;
  --line: #dcc9a4;
  --tomato: #d9532b;
  --tomato-ink: #fffaf0;
  --tomato-deep: #9e3417;
  --pine: #d29a5c;
  --pine-hi: #e8b97f;
  --pine-lo: #9c6431;
  --mat: #fffaf0;
  --key: #9c6431;
  --shadow: 0 2px 0 rgba(90, 55, 20, 0.08), 0 14px 30px -12px rgba(90, 55, 20, 0.35);
  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --wall: #1c1612;
    --wall-2: #261d17;
    --grain: rgba(255, 220, 170, 0.035);
    --surface: #2a211a;
    --ink: #f4e9d6;
    --muted: #bba88c;
    --line: #45372a;
    --tomato: #ec6a40;
    --tomato-ink: #1c1612;
    --tomato-deep: #8f2f15;
    --pine: #8a5a32;
    --pine-hi: #a8723f;
    --pine-lo: #5a3519;
    --mat: #f1e4c8;
  --key: #e8b97f;
    --shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 16px 34px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  padding: 0 16px;
  overflow-x: clip;
  color: var(--ink);
  font: 500 17px/1.55 var(--font-body);
  background-color: var(--wall);
  /* Paper grain plus a soft lamp glow from the top. */
  background-image:
    radial-gradient(1200px 520px at 70% -120px, color-mix(in srgb, var(--pine-hi) 28%, transparent), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .3 0 0 0 0 .12 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body { background-blend-mode: normal, soft-light; }
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.top, .hero, main, .foot, .doc { max-width: 1080px; margin-inline: auto; }

/* ---- Logo ---------------------------------------------------------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 22px 0 8px;
}
.logo {
  display: inline-flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--ink);
}
.logo-key { width: 34px; height: 34px; color: var(--key); transform-origin: 50% 60%; }
.logo-word {
  font-family: var(--font-display);
  font-size: 34px; line-height: 1; letter-spacing: 0.01em;
}
.logo-one {
  display: inline-block;
  margin: 0 3px 0 2px; padding: 4px 9px 2px;
  background: var(--tomato); color: var(--tomato-ink);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--tomato-deep);
  transform: rotate(-6deg) translateY(-2px);
}
.logo-tld { font-size: 0.62em; color: var(--muted); margin-left: 2px; }

/* ---- Main nav (every hub page) --------------------------------------- */
.top-nav ul {
  display: flex; gap: 6px; margin: 0; padding: 0; list-style: none;
}
.top-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 14px; border-radius: 12px;
  font-weight: 800; font-size: 15.5px; text-decoration: none; color: var(--ink);
}
.top-nav a:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.top-nav a[aria-current="page"] {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 var(--line);
}
.top-nav a:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
/* Phones: the nav takes its own row under the logo, four equal tabs. */
@media (max-width: 640px) {
  .top { padding-top: 16px; row-gap: 10px; }
  .top-nav { flex: 1 1 100%; }
  .top-nav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .top-nav a {
    width: 100%; padding: 0 6px; font-size: 15px;
    background: color-mix(in srgb, var(--surface) 65%, transparent);
    box-shadow: inset 0 0 0 2px var(--line);
  }
  .logo-word { font-size: 30px; }
  .logo-key { width: 30px; height: 30px; }
}
@media (max-width: 360px) {
  .top-nav ul { gap: 4px; }
  .top-nav a { padding: 0 3px; font-size: 14px; }
}

/* ---- Hero ---------------------------------------------------------- */
.hero {
  display: grid; gap: 28px; align-items: center;
  grid-template-columns: 1fr;
  padding: 28px 0 32px;
}
@media (min-width: 1000px) {
  .hero { grid-template-columns: 1fr 560px; padding: 44px 0 40px; }
}
.eyebrow {
  display: inline-block; margin: 0 0 12px;
  padding: 3px 12px; border-radius: 999px;
  background: var(--surface); border: 2px dashed var(--line);
  font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
h1 {
  margin: 0 0 22px;
  font: 400 clamp(38px, 7vw, 64px)/1.08 var(--font-display);
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.squiggle {
  color: var(--tomato);
  text-decoration: underline wavy var(--pine);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  text-decoration-skip-ink: none;
}
.lede { margin: 0 0 22px; max-width: 34em; color: var(--muted); font-size: 18px; }

.hero-art {
  margin: 0; position: relative;
  padding: 10px; border-radius: 22px;
  background: var(--mat);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-art img { width: 100%; aspect-ratio: 1600 / 898; object-fit: cover; border-radius: 14px; }
.hero-art::after {
  /* A strip of masking tape holding the picture up. */
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 110px; height: 26px; margin-left: -55px;
  background: color-mix(in srgb, #f6e7b0 82%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transform: rotate(-3deg);
}

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px;
  border-radius: 14px; border: 0;
  font: 800 17px/1 var(--font-body); text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ghost {
  background: var(--surface); color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line), 0 4px 0 var(--line);
}
.btn-ghost:hover { transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(3px); box-shadow: inset 0 0 0 2px var(--line), 0 1px 0 var(--line); }
.btn:focus-visible, .card:focus-visible, .logo:focus-visible {
  outline: 3px solid var(--tomato); outline-offset: 3px;
}

/* ---- Shelf --------------------------------------------------------- */
main { padding: 28px 0 8px; }
.shelf-title {
  margin: 0 0 22px;
  font: 400 clamp(26px, 5vw, 34px)/1.1 var(--font-display);
}
.games {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 52px 26px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.game {
  position: relative; padding-bottom: 18px;
  display: flex; flex-direction: column;
  --game: var(--tomato); --game-ink: #fff; --game-soft: var(--surface);
}
/* The wooden plank each toy stands on. */
.game::after {
  content: ""; position: absolute; left: -14px; right: -14px; bottom: 0; height: 16px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(0, 0, 0, 0.05) 34px 36px, transparent 36px 90px),
    linear-gradient(var(--pine-hi), var(--pine) 40%, var(--pine-lo));
  box-shadow: 0 10px 14px -8px rgba(60, 30, 5, 0.55);
}

.card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; flex: 1 0 auto;
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--game) 30%, var(--line));
  box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: transform 0.2s cubic-bezier(.3, 1.6, .5, 1);
}
.card-art {
  display: block; margin: 10px 10px 0; padding: 0;
  border-radius: 14px; overflow: hidden;
  background: var(--game-soft);
}
.card-art img { width: 100%; aspect-ratio: 960 / 539; object-fit: cover; transition: transform 0.4s ease; }
.card-body {
  position: relative;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
  padding: 18px 20px 20px;
}
.card-icon {
  position: absolute; top: -40px; right: 18px;
  width: 72px; height: 72px; border-radius: 18px;
  border: 4px solid var(--mat);
  box-shadow: 0 6px 14px -4px rgba(40, 20, 5, 0.45);
  transform: rotate(5deg);
  background: var(--game-soft);
}
.card-title {
  padding-right: 76px;
  font: 400 26px/1.1 var(--font-display);
  color: var(--ink);
}
.card-line { color: var(--muted); font-size: 16.5px; }
.card-desc {
  margin-top: 4px;
  color: color-mix(in srgb, var(--ink) 82%, var(--muted));
  font-size: 15.5px; line-height: 1.5;
}
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; flex: 1; align-content: flex-start; }
.card-meta span {
  padding: 2px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--game) 75%, var(--ink));
  background: color-mix(in srgb, var(--game) 13%, transparent);
}
.btn-play {
  align-self: flex-start;
  background: var(--game); color: var(--game-ink);
  box-shadow: 0 5px 0 color-mix(in srgb, var(--game) 55%, #000);
  min-width: 140px; font-size: 18px;
}
.card:hover .btn-play { transform: translateY(-1px); }
.card:active .btn-play { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--game) 55%, #000); }

/* The guide link under a card: a paper tag standing on the shelf, outside
   the card's own link (links cannot nest). */
.game-guide {
  position: relative; z-index: 1;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; margin: 14px 0 0 10px; padding: 6px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 2px dashed color-mix(in srgb, var(--game) 45%, var(--line));
  color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1.25;
  text-decoration: none;
}
.game-guide:hover { border-style: solid; }
.game-guide:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }

/* Placeholder slot for the next game. */
.card-soon {
  align-items: center; justify-content: center; text-align: center; gap: 8px;
  min-height: 300px; padding: 26px;
  background: transparent; box-shadow: none;
  border: 3px dashed var(--line);
}
.card-soon .card-title { padding: 0; font-size: 22px; color: var(--muted); }
.card-soon .card-line { max-width: 22em; }
.soon-gift { width: 120px; height: 120px; border-radius: 16px; transform: rotate(-4deg); box-shadow: var(--shadow); }

/* ---- Below the shelf: how the games work, latest updates ------------- */
.hub-more {
  display: grid; gap: 26px; align-items: start;
  grid-template-columns: minmax(0, 1fr);
  margin: 60px 0 0;
}
@media (min-width: 900px) {
  .hub-more { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.hub-panel {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 16.5px; line-height: 1.6;
}
.hub-panel h2 {
  margin: 0 0 12px;
  font: 400 clamp(23px, 4vw, 28px)/1.15 var(--font-display);
}
.hub-panel p { margin: 0 0 14px; }
.hub-panel a { color: var(--tomato-deep); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .hub-panel a { color: var(--tomato); } }
.hub-panel a:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 3px; }
.hub-points { display: grid; gap: 12px; margin: 0 0 4px; }
.hub-points dt { font-weight: 800; }
.hub-points dd { margin: 0; }
.hub-panel .hub-all { margin: 0; font-weight: 800; }

/* ---- Footer -------------------------------------------------------- */
.foot { padding: 44px 0 40px; color: var(--muted); font-size: 14.5px; text-align: center; }
.foot p { margin: 0 auto; max-width: 36em; }
.foot-logo { font: 400 22px/1 var(--font-display); color: var(--ink); margin-bottom: 10px !important; }
.foot-logo span { color: var(--tomato); }
.foot-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px;
  margin: 14px 0 0; padding: 0; list-style: none;
  font-weight: 800; font-size: 14px;
}
.foot-links a { color: var(--muted); text-underline-offset: 3px; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { margin-top: 10px !important; font-size: 12.5px; opacity: 0.85; }

/* ---- Legal pages (privacy, terms): plain readable prose --------------- */
.doc { padding: 20px 0 8px; }
.doc-sheet {
  max-width: 46em; margin: 0 auto;
  padding: clamp(22px, 5vw, 48px);
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 16.5px; line-height: 1.65;
}
.doc h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 8px; }
.doc h1 + p:not(.doc-date) { margin-top: 20px; }
.doc-date { margin: 0 0 26px; color: var(--muted); font-weight: 700; font-size: 14.5px; }
.doc h2 {
  margin: 36px 0 10px; scroll-margin-top: 16px;
  font: 400 clamp(21px, 3.6vw, 25px)/1.2 var(--font-display);
}
.doc h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 800; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--tomato-deep); text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) { .doc a { color: var(--tomato); } }
.doc a:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 3px; }
.doc address { font-style: normal; margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, var(--wall) 60%, transparent); }
.doc-toc { margin: 0 0 8px; padding: 14px 18px; border: 2px dashed var(--line); border-radius: 14px; }
.doc-toc ol { margin: 0; columns: 2 16em; column-gap: 28px; }
.doc-toc li { break-inside: avoid; }
.doc .note { color: var(--muted); }
.doc dt { font-weight: 800; }
.doc dd { margin: 0 0 10px; }
.doc kbd {
  display: inline-block; min-width: 1.7em; padding: 0 6px;
  border-radius: 7px; border: 2px solid var(--line); border-bottom-width: 3px;
  background: color-mix(in srgb, var(--wall) 60%, transparent);
  font: 800 0.86em/1.45 var(--font-body); text-align: center; white-space: nowrap;
}
.doc table {
  width: 100%; margin: 0 0 16px;
  border-collapse: collapse;
  font-size: 15px; line-height: 1.45;
}
/* Cells wrap only between words: never mid-word, never hyphenated. */
.doc th, .doc td {
  padding: 8px 10px; text-align: left; vertical-align: top;
  border-bottom: 2px solid var(--line);
  overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual;
}
.doc th a, .doc td a { overflow-wrap: normal; }
.doc thead th { font-weight: 800; border-bottom-width: 3px; }
.doc caption { margin-bottom: 6px; color: var(--muted); font-size: 14.5px; text-align: left; }
/* Narrow screens: a table too wide for the sheet scrolls sideways inside
   itself, so the page never does. Wider screens keep a normal table. */
@media (max-width: 760px) {
  .doc table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (max-width: 480px) {
  .doc table { font-size: 14px; }
  .doc th, .doc td { padding: 7px 8px; }
  .doc th:first-child, .doc td:first-child { padding-left: 0; }
}

/* Guides (served from each game's Worker) and the Updates page. */
/* Breadcrumb line above the <h1>. */
.doc-crumbs {
  margin: 0 0 12px;
  color: var(--muted); font-size: 14.5px; font-weight: 700; line-height: 1.5;
}
.doc .doc-crumbs a { color: var(--muted); text-decoration-color: color-mix(in srgb, var(--muted) 55%, transparent); }
.doc .doc-crumbs a:hover { color: var(--ink); }

/* Play button: picks up the game's accent from --game / --game-ink, set on
   the <article>; falls back to the hub's tomato. */
.doc-cta { margin: 20px 0 26px; }
.doc .doc-cta .btn {
  --cta: var(--game, var(--tomato));
  max-width: 100%; padding: 12px 22px;
  line-height: 1.2; text-align: left; overflow-wrap: normal;
  background: var(--cta); color: var(--game-ink, var(--tomato-ink));
  box-shadow: 0 5px 0 color-mix(in srgb, var(--cta) 55%, #000);
  text-decoration: none;
}
.doc .doc-cta .btn:hover { transform: translateY(-1px); }
.doc .doc-cta .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cta) 55%, #000); }
.doc .doc-cta .btn:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 14px; }

/* A picture with a caption: the 960px cover or a few small sprites. */
.doc-figure {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  margin: 22px 0 26px;
}
.doc-figure img {
  min-width: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--wall) 60%, transparent);
  box-shadow: 0 0 0 2px var(--line);
}
.doc-figure figcaption {
  flex: 1 0 100%;
  color: var(--muted); font-size: 14.5px; line-height: 1.5;
}

/* Spoilers: closed until the reader asks. The native marker stays. */
.doc-spoiler {
  margin: 0 0 16px; padding: 0 16px;
  border: 2px dashed color-mix(in srgb, var(--game, var(--tomato)) 45%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--wall) 45%, transparent);
}
.doc-spoiler > summary {
  margin: 0 -16px; padding: 11px 16px; border-radius: 12px;
  font-weight: 800; line-height: 1.45; cursor: pointer;
}
.doc-spoiler > summary::marker { color: var(--game, var(--tomato)); }
.doc-spoiler > summary:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.doc-spoiler > summary:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; }
.doc-spoiler[open] > summary {
  border-radius: 12px 12px 0 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--game, var(--tomato)) 30%, var(--line));
}
.doc .doc-spoiler > summary + * { margin-top: 14px; }
.doc-spoiler[open] { padding-bottom: 2px; }
@media (max-width: 480px) {
  .doc-spoiler { padding: 0 12px; }
  .doc-spoiler > summary { margin: 0 -12px; padding: 11px 12px; }
}

/* Changelog: a dated list, newest first, strung on a line. */
ol.changelog {
  position: relative;
  list-style: none; margin: 0 0 16px; padding: 0 0 0 24px;
}
ol.changelog::before {
  content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px;
  width: 2px; border-radius: 2px; background: var(--line);
}
ol.changelog > li { position: relative; margin: 0 0 14px; }
ol.changelog > li:last-child { margin-bottom: 0; }
ol.changelog > li::before {
  content: ""; position: absolute; left: -24px; top: 5px;
  box-sizing: border-box; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--game, var(--tomato));
}
ol.changelog time {
  display: block;
  color: var(--muted); font-size: 13.5px; font-weight: 800; letter-spacing: 0.03em;
}

/* Updates page: each entry is an <h2> that starts with its <time>. */
.doc h2 > time {
  display: block; margin-bottom: 4px;
  color: var(--muted);
  font: 800 13.5px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase;
}
.doc-updates h2 { padding-top: 26px; border-top: 2px dashed var(--line); }
.doc-updates h2:first-of-type { padding-top: 0; border-top: 0; }

/* Text for screen readers only. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Contact: the address, set large enough to read and tap. */
.contact-mail { font-size: clamp(20px, 5vw, 26px); font-weight: 800; }

/* ---- Motion (only when the visitor is fine with it) ----------------- */
@media (prefers-reduced-motion: no-preference) {
  .logo-key { animation: wind 3.2s cubic-bezier(.6, 0, .4, 1) infinite; }
  .logo:hover .logo-key { animation-duration: 0.9s; }
  .card:hover, .card:focus-visible { transform: translateY(-6px) rotate(-0.6deg); }
  .game:nth-child(even) .card:hover, .game:nth-child(even) .card:focus-visible { transform: translateY(-6px) rotate(0.6deg); }
  .card:hover .card-art img { transform: scale(1.04); }
  .card:hover .card-icon { animation: wobble 0.6s ease; }
  .soon-gift { animation: bob 3.6s ease-in-out infinite; }
  .hero-art { animation: settle 0.9s cubic-bezier(.3, 1.5, .5, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .card-art img { transition: none; }
}
@keyframes wind {
  0%, 15% { transform: scaleX(1); }
  35% { transform: scaleX(-1); }
  55%, 100% { transform: scaleX(1); }
}
@keyframes wobble {
  0%, 100% { transform: rotate(5deg); }
  30% { transform: rotate(-6deg) scale(1.06); }
  60% { transform: rotate(9deg); }
}
@keyframes bob {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-6px); }
}
@keyframes settle {
  from { transform: rotate(-2deg) translateY(10px); }
  to { transform: rotate(1.2deg); }
}
