/* Everyday Atlas: the Games page (/games/). English first. */
.games-page { --ink: #23393f; --red: #a83246; --round: 'Zen Maru Gothic', 'Nunito', sans-serif; margin: 0; background: #fff6f1; color: var(--ink); font: 400 16px/1.55 Inter, system-ui, sans-serif; }
.games-page *, .games-page *::before { box-sizing: border-box; }
.games-page a { color: inherit; }
.games-page a:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.games-page img { display: block; max-width: 100%; }
.games-page :is(h1, h2, p) { margin: 0; }
.games-skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; background: #fff; }
.games-skip:focus { top: 8px; }
.games-bar { display: flex; align-items: center; gap: 22px; min-height: 60px; padding: 8px 26px; background: #fffdfa; border-bottom: 1px dashed #d8cfc4; font: 700 15px/1.3 Nunito, sans-serif; }
.games-bar a { text-decoration: none; white-space: nowrap; }
.games-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font-size: 17px; font-weight: 800; }
.games-brand img { border-radius: 50%; }
.games-bar nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.games-bar nav a { padding: 9px 0; }
.games-bar [aria-current] { color: var(--red); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.games-hero { max-width: 1180px; margin: 0 auto; padding: 48px 26px 28px; }
.games-hero > p:first-child { font: 900 clamp(24px, 2.6vw, 32px)/1.2 var(--round); color: var(--red); }
.games-hero h1 { margin: 8px 0; font: 900 clamp(38px, 6vw, 74px)/1.1 var(--round); text-wrap: balance; }
.games-hero .games-lede { max-width: 640px; font-size: 19px; color: #4f5f63; }
.games-moments { max-width: 1180px; margin: 0 auto; padding: 0 26px 20px; display: grid; gap: 14px; }
.games-moments a { display: flex; align-items: center; gap: 20px; padding: 16px 26px 16px 16px; border-radius: 22px; background: #fff; box-shadow: 0 4px 20px #8a4b3a1c; text-decoration: none; transition: transform .2s; }
.games-moments a:hover { transform: translateX(8px); }
.games-moments img { flex: none; width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.games-moments b { font: 700 clamp(19px, 2.5vw, 29px)/1.25 var(--round); }
.games-moments span { margin-left: auto; font: 800 24px Nunito, sans-serif; color: var(--red); }
.games-entry { max-width: 1180px; margin: 44px auto 0; padding: 0 26px 40px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 42px; align-items: center; scroll-margin-top: 20px; }
.games-entry--turned { grid-template-columns: 1fr 1.25fr; }
.games-entry--turned > div { order: -1; }
.games-entry > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 30%; border-radius: 26px; }
.games-entry--turned > img { aspect-ratio: 3 / 2; object-position: 55% 30%; }
.games-entry h2 { font: 900 36px/1.2 var(--round); text-wrap: balance; }
.games-entry .games-kind { margin-bottom: 12px; font-weight: 600; color: var(--red); }
.games-actions { display: grid; gap: 10px; margin-top: 18px; }
.games-actions a { display: flex; justify-content: space-between; gap: 12px; padding: 15px 20px; border-radius: 15px; background: var(--red); color: #fff; font: 800 17px/1.3 Nunito, sans-serif; text-decoration: none; }
.games-actions a + a { background: #fbe1da; color: #762235; }
.games-actions a:hover { filter: brightness(.94); }
.games-entry .games-legal { margin-top: 10px; font-size: 14px; color: #4f5f63; }
.games-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 28px 26px 40px; font-size: 14px; color: #4f5f63; }
@media (max-width: 800px) {
  .games-entry, .games-entry--turned { grid-template-columns: 1fr; gap: 22px; }
  .games-entry--turned > div { order: 0; }
  .games-moments a { gap: 14px; padding-right: 18px; }
  .games-moments img { width: 64px; height: 64px; }
}
@media (max-width: 640px) {
  .games-bar { flex-wrap: wrap; gap: 0 14px; padding: 8px 16px; }
  .games-bar nav { width: 100%; justify-content: space-between; gap: 4px 10px; font-size: 14px; }
  .games-hero, .games-moments, .games-entry { padding-inline: 16px; }
  .games-hero { padding-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .games-moments a { transition: none; }
  .games-moments a:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) { html:has(.games-page) { scroll-behavior: smooth; } }
.games-bar .portal-language-static { font: 400 12px/1.3 Inter, sans-serif; color: #5f6c6f; }
.games-watch { max-width: 1128px; margin: 34px auto 0; padding: 22px 26px; display: flex; align-items: center; gap: 22px; border-radius: 26px; background: #f3ebf9; }
.games-watch img { flex: none; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.games-watch h2 { font: 900 26px/1.25 var(--round); }
.games-watch > a { margin-left: auto; padding: 14px 20px; border-radius: 15px; background: #6b4a8c; color: #fff; font: 800 17px/1.3 Nunito, sans-serif; text-decoration: none; white-space: nowrap; }
.games-watch > a:hover { filter: brightness(.94); }
@media (max-width: 1180px) { .games-watch { margin-inline: 26px; } }
@media (max-width: 640px) { .games-watch { margin-inline: 16px; padding: 18px; flex-wrap: wrap; gap: 14px; } .games-watch img { width: 64px; height: 64px; } .games-watch > div { flex: 1; min-width: 0; } .games-watch > a { width: 100%; text-align: center; } }
/* Zen Maru Gothic lacks these scripts; one whole font reads better than a mix. */
.games-page:lang(zh-Hans) { --round: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif; }
.games-page:lang(zh-Hant) { --round: 'Microsoft JhengHei', 'PingFang TC', 'Noto Sans TC', sans-serif; }
.games-page:lang(ko) { --round: 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; word-break: keep-all; }
.games-page:lang(vi) { --round: 'Nunito', sans-serif; }
.games-watch [lang="ja"] { font-family: 'Zen Maru Gothic', sans-serif; }
