:root {
  --bg: #f7f4ef;
  --ink: #1a1a1a;
  --muted: #5c574f;
  --rule: #d8d1c6;
  --card: #fffdf8;
  --red: #c00;
  --event: #6b1510;
  --link: #6b1510;
  --max: 44rem;
}
* { box-sizing: border-box; }
.game-area {
  min-height: 0;
  margin: 1.5rem 0 0;
  padding: 1.25rem 1rem 1.5rem;
  background: #0c0a09;
  color: #fffdf8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.game-word {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 0.12em 0.2em;
  width: 100%;
  margin: 0;
  border: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  font: inherit;
  font-weight: 800;
  font-size: clamp(1.7rem, 8vw, 2.7rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 0.85rem 0.55rem 0.9rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(204, 0, 0, 0.28);
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.game-word-text {
  min-width: 0;
  text-align: center;
  line-height: 0.95;
}
.game-word:hover { background: #a00; transform: translateY(-2px); }
.game-word:active, .game-word.is-punched {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}
.game-word .finger {
  display: inline-block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0;
  font-size: 1.15em;
  line-height: 1;
}
.game-presence {
  margin: 0;
  max-width: 28rem;
  text-align: center;
  color: rgba(255,253,248,0.8);
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.4rem;
}
.game-presence .game-live { margin-top: 0.45em; }
.game-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}
.game-digits {
  display: flex;
  gap: clamp(0.18rem, 1vw, 0.32rem);
  font-variant-numeric: tabular-nums;
}
.game-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(1.55rem, 6.5vw, 2.15rem);
  height: clamp(2.1rem, 8vw, 2.8rem);
  padding: 0 0.12rem;
  background: #1c1917;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  line-height: 1;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.06), 0 1px 0 #000;
}
.game-combo {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.3rem;
}
.game-combo-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,253,248,0.7);
}
.game-combo-digits {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  gap: clamp(0.2rem, 0.8vw, 0.4rem);
}
.game-combo-digits .game-digit {
  flex: 1 1 0;
  min-width: 0;
  max-width: 3.1rem;
  height: clamp(3.1rem, 12vw, 4.4rem);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: clamp(1.85rem, 8vw, 2.85rem);
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.08);
}
.game-combo-digits.is-flashing {
  animation: combo-flash 0.32s ease-out;
}
@keyframes combo-flash {
  0% { transform: scale(1); filter: none; }
  40% {
    transform: scale(1.14);
    filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 18px var(--red, #c00));
  }
  100% { transform: scale(1); filter: none; }
}
.game-burst {
  position: absolute;
  left: 0;
  right: 0;
  top: -12rem;
  height: calc(100% + 12rem);
  pointer-events: none;
  z-index: 6;
  overflow: visible;
}
.game-area,
.game-rail-play {
  overflow: visible;
}
.game-ball {
  position: absolute;
  line-height: 1;
  pointer-events: none;
  will-change: transform, opacity;
}
.game-finger-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: calc(1em + 1.35rem);
  font-size: clamp(4.5rem, 12vh, 8rem);
  line-height: 1;
  margin: 0;
  flex: 0 0 auto;
}
.game-finger-giant {
  display: block;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1em;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  transform-origin: 50% 100%;
  will-change: transform;
  text-align: center;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.35));
}
.game-area { position: relative; }
@media (prefers-reduced-motion: reduce) {
  .game-combo-digits.is-flashing { animation: none; }
  .game-finger-giant { will-change: auto; }
  .game-ball { display: none; }
}
.game-total-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: rgba(255,253,248,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.game-live {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18);
  flex: 0 0 auto;
}
.game-countries {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 22rem;
  max-height: 28vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.game-countries li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.22rem 0.15rem;
  border-bottom: 1px solid rgba(255,253,248,0.08);
  font-size: 0.95rem;
  color: #fffdf8;
}
.game-countries li:last-child { border-bottom: 0; }
.game-country-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-flag { font-style: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.game-country-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  flex: 0 0 auto;
}
.game-countries-empty {
  display: block;
  text-align: center;
  color: rgba(255,253,248,0.45);
  font-size: 0.85rem;
  border-bottom: 0 !important;
  justify-content: center !important;
}
a, a:visited, a * { color: #1a5fd0 !important; }
a:hover, a:hover * { color: #0b3d91 !important; }
.game-video { display: none; }
.game-video-caption {
  margin: 0 0 0.35rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 650;
  color: rgba(255,253,248,0.9);
  text-align: center;
}
.game-video-embed {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  line-height: 0;
  background: #000;
}
.game-video-embed blockquote {
  margin: 0;
  padding: 0.4rem 0.45rem;
  line-height: 1.35;
  font-size: 0.78rem;
  color: rgba(255,253,248,0.8);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.game-video-embed iframe {
  margin: 0 !important;
  max-width: 100% !important;
}
.game-video-x {
  display: block;
  margin: 0.35rem 0 0;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  color: rgba(255,253,248,0.7) !important;
}
.game-video-x:hover { color: #fff !important; }
.game-song-toggle {
  display: block; width: 100%; margin: 0.45rem 0 0; padding: 0.4rem 0.5rem;
  border: 2px solid #e02424; border-radius: 999px; background: #e02424; color: #fff;
  cursor: pointer; font-size: 0.9rem; font-weight: 700; line-height: 1.2;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.game-song-toggle[aria-pressed="true"] { background: transparent; color: #fff; border-color: rgba(255,253,248,0.5); }
.game-song-toggle:hover { filter: brightness(1.12); }
.game-song-audio { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; overflow: hidden; opacity: 0; pointer-events: none; }
.game-rail { display: none; }
.cn-short { display: none; }
.a-body .handle { color: #111 !important; }
.game-cup { margin-right: 0.2rem; display: inline-block; animation: cupglow 1.6s ease-in-out infinite; }
.game-champ .game-country-count { color: #ffd23f; font-weight: 800; }
@keyframes cupglow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.game-flag-img { width: 20px; height: 15px; object-fit: cover; vertical-align: -2px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,0.15); margin-right: 0.15rem; }
.game-area-index {
  min-height: 0;
  margin: 1.15rem 0 0.75rem;
}
@media (max-width: 999px) {
  .game-video {
    display: block;
    width: 100%;
    max-width: 22rem;
    margin: 0.85rem auto 1rem;
    background: #0c0a09;
    color: #fffdf8;
    border-radius: 10px;
    padding: 0.55rem 0.55rem 0.65rem;
    box-sizing: border-box;
  }
}
@media (max-width: 520px) {
  .game-area { padding: 1rem 0.75rem 1.25rem; }
  .game-countries { max-height: 32vh; }
  .game-word { font-size: clamp(1.45rem, 8.5vw, 2rem); padding: 0.75rem 0.4rem 0.8rem; }
  .game-combo-digits .game-digit { height: 3.3rem; font-size: 2rem; }
}
@media (min-width: 1000px) {
  .game-area-index { display: none; }
  /* Question pages: the game lives in the rails; do not reserve a blank bottom third. */
  .game-area:not(.game-area-index) {
    display: none;
    min-height: 0;
    height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  .game-rail .cn-full { display: none; }
  .game-rail .cn-short { display: inline; font-weight: 650; }
  .game-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    top: 1.25rem;
    width: calc((100vw - var(--max)) / 2 - 1.5rem);
    max-width: 20rem;
    max-height: calc(100vh - 2.5rem);
    overflow: hidden;
    z-index: 20;
    box-sizing: border-box;
    background: #0c0a09;
    color: #fffdf8;
    border-radius: 10px;
    padding: 0.65rem 0.7rem 0.75rem;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    gap: 0.65rem;
  }
  .game-rail-left { left: 0.75rem; max-width: 300px; }
  .game-rail-right { right: 0.75rem; align-items: stretch; }
  .game-rail-title {
    margin: 0 0 0.15rem;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,253,248,0.55);
    font-weight: 650;
  }
  .game-rail .game-countries {
    margin: 0;
    max-width: none;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;
  }
  .game-video {
    display: block;
    position: fixed;
    top: 0.65rem;
    left: 0.75rem;
    width: min(300px, calc((100vw - var(--max)) / 2 - 1.5rem));
    max-width: 300px;
    z-index: 15;
    background: #0c0a09;
    color: #fffdf8;
    border-radius: 10px;
    padding: 0.45rem 0.45rem 0.5rem;
    box-sizing: border-box;
    /* Below the rail (z-index 20) so click-balls paint over the video, not under it. */
  }
  .game-video-embed { min-height: 10.5rem; }
  .game-rail-play { justify-content: flex-start; overflow: visible; }
  .game-rail-left.game-rail-play {
    /* Fallback before game.js measures the embed; JS sets the real top + 150px gap. */
    top: calc(0.65rem + 16rem + 150px);
    max-height: calc(100vh - 16rem - 170px);
    overflow: visible;
    z-index: 20;
  }
  .game-rail-play .game-burst { z-index: 8; }
  .game-rail-play .game-word { position: relative; z-index: 9; }
  .game-rail-play .game-finger-wrap { font-size: clamp(4.5rem, 12vh, 8rem); }
  .game-rail-play .game-word {
    width: 100%;
    font-size: clamp(1.45rem, 2.5vw, 2.2rem);
    padding: 0.95rem 0.35rem 1.05rem;
    min-height: 5.1rem;
    letter-spacing: -0.03em;
    line-height: 0.95;
  }
  .game-rail-play .game-presence {
    max-width: none;
    width: 100%;
    font-size: 0.8rem;
    line-height: 1.35;
  }
  .game-rail-play .game-combo { width: 100%; }
  .game-rail-play .game-combo-digits .game-digit {
    height: clamp(3.2rem, 5.2vw, 4.3rem);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    max-width: 3.2rem;
  }
}
@media (min-width: 1000px) and (max-height: 850px) {
  .game-rail-left.game-rail-play {
    top: calc(0.5rem + 13rem + 120px);
    max-height: calc(100vh - 13rem - 140px);
  }
  .game-rail { gap: 0.4rem; padding: 0.5rem 0.55rem 0.55rem; }
  .game-rail-play .game-word { min-height: 4.2rem; padding: 0.7rem 0.3rem 0.75rem; font-size: clamp(1.25rem, 2.1vw, 1.85rem); }
  .game-rail-play .game-finger-wrap,
  .game-finger-wrap { font-size: clamp(4.25rem, 11vh, 6.5rem); height: calc(1em + 1.1rem); }
  .game-rail-play .game-combo-digits .game-digit { height: 3.1rem; font-size: 1.85rem; }
}
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.55;
}
a { color: var(--link); }
a:hover { color: #000; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.15rem 3.5rem;
}
header.site {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1rem;
  margin-bottom: 1.75rem;
}
header.site .brand {
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1.site-title {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.05;
  margin: 0.45rem 0 0.4rem;
  font-weight: 700;
}
.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.counts {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
h2.section {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.85rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}
h3.year {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.45rem;
}
ol.qa {
  list-style: none;
  margin: 0;
  padding: 0;
}
ol.qa li { margin: 0; }
ol.qa a.item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.7rem 0.15rem;
  border-bottom: 1px solid var(--rule);
}
ol.qa a.item:hover { background: var(--card); }
.event-date {
  display: block;
  color: var(--event);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
.event-label {
  display: block;
  margin-top: 0.12rem;
  font-size: 1.08rem;
  color: var(--ink);
}
.post-date {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.event-banner {
  margin: 0 0 0.35rem;
}
.event-banner .event-date {
  font-size: clamp(1.6rem, 4.5vw, 2.15rem);
  line-height: 1.15;
}
.event-banner .event-label {
  font-size: 1.25rem;
  margin-top: 0.25rem;
}
article.post .post-date { margin: 0 0 1.4rem; }
.x-link {
  color: var(--muted);
}
section.block { margin: 1.4rem 0 1.6rem; }
section.block h2 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.45rem;
  font-weight: 650;
}
.q-body, .a-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.q-body {
  color: var(--ink);
  font-size: 1.3rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.95rem 1rem;
}
.a-body {
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 650;
  line-height: 1.35;
  padding: 0.15rem 0;
}
.q-media {
  margin: 0.9rem 0 0;
}
.q-media figure {
  margin: 0 0 0.9rem;
}
.q-media figure:last-child { margin-bottom: 0; }
.q-media img, .q-media video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 8px;
  background: #ece7df;
}
.source {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
nav.pager {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.5rem;
}
nav.pager a { text-decoration: none; max-width: 42%; }
nav.pager a.back { max-width: none; color: var(--ink); }
nav.pager .ph { visibility: hidden; }
nav.pager .side { display: flex; flex-direction: column; gap: 0.15rem; }
nav.pager .nav-kicker {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
footer.site {
  margin-top: 2.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.historical-note {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0.85rem 0 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
}
.historical-note h2 {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.3rem;
  font-weight: 650;
}
.historical-note p { margin: 0; }
.historical-note .sources {
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
}
.historical-note .sources li { display: inline; }
.historical-note .sources li:not(:last-child)::after {
  content: " · ";
  color: #9a9388;
}
section.owner-notes {
  margin-top: 1.75rem;
  min-height: 0;
}
nav.pager { flex-direction: column; align-items: stretch; gap: 0.6rem; }
nav.pager .ph { display: none; }
nav.pager .side { flex-direction: row; align-items: baseline; gap: 0.6rem; width: 100%; }
nav.pager .side .nav-kicker { flex: 0 0 auto; min-width: 5.5em; }
nav.pager .side a {
  max-width: none; flex: 1 1 auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
nav.pager a.back { order: 3; }
header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.lang-btn {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--rule);
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  background: var(--card);
  white-space: nowrap;
}
@media (min-width: 1000px) and (max-width: 1280px) {
  .lang-btn { font-size: 1.2rem; padding: 0.2rem 0.6rem; }
}
.lang-btn.is-current, .lang-btn.is-current * {
  background: #1a5fd0;
  border-color: #1a5fd0;
  color: #fff !important;
}
.lang-btn:not(.is-current):hover { border-color: #1a5fd0; }
@media (max-width: 999px) {
  .lang-switch { margin: 0.2rem 0 0; }
}
@media (max-width: 520px) {
  .lang-btn { font-size: 1.1rem; padding: 0.2rem 0.75rem; }
}
html[lang="ja"] body,
html[lang="ja"] .q-body,
html[lang="ja"] .a-body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans CJK JP", "Noto Sans JP", system-ui, sans-serif;
}
html[lang="ja"] section.block h2, html[lang="ja"] nav.pager .nav-kicker, html[lang="ja"] .game-combo-label, html[lang="ja"] .game-rail-title { letter-spacing: 0.04em; }
html[lang="ko"] body,
html[lang="ko"] .q-body,
html[lang="ko"] .a-body {
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans CJK KR", "Noto Sans KR", system-ui, sans-serif;
  word-break: keep-all;
}
html[lang="ko"] .q-body, html[lang="ko"] .a-body { word-break: keep-all; overflow-wrap: anywhere; }
.lang-btn[lang="ko"] { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", sans-serif; }
.lang-btn[lang="ja"] { font-family: "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans CJK JP", sans-serif; }
.lang-btn[lang="zh-Hans"] { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; }
html[dir="rtl"] body,
html[dir="rtl"] .q-body,
html[dir="rtl"] .a-body,
html[dir="rtl"] .historical-note,
html[dir="rtl"] footer.site,
html[dir="rtl"] nav.pager,
html[dir="rtl"] .post-date,
html[dir="rtl"] .counts,
html[dir="rtl"] .source,
html[dir="rtl"] section.block h2,
html[dir="rtl"] h3.year,
html[dir="rtl"] .game-rail,
html[dir="rtl"] .game-area,
html[dir="rtl"] .game-video-caption,
html[dir="rtl"] .game-song-toggle {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", Tahoma, "Arabic Typesetting", sans-serif;
}
html[dir="rtl"] header.site .brand, html[dir="rtl"] h1.site-title {
  font-family: "Noto Kufi Arabic", "Noto Sans Arabic", "Geeza Pro", Tahoma, sans-serif;
}
/* Letter-spacing and uppercase break Arabic letter joining. */
html[dir="rtl"] *:not(.brand-en):not(.game-word):not(.game-word *) { letter-spacing: 0 !important; }
html[dir="rtl"] .q-body, html[dir="rtl"] .a-body { text-align: start; line-height: 1.75; }
html[dir="rtl"] .game-word, html[dir="rtl"] .game-digit, html[dir="rtl"] .game-country-count { font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif; }
html[dir="rtl"] .brand-en { white-space: nowrap; }
html[dir="rtl"] .a-body { line-height: 1.7; }
html[dir="rtl"] .tagline-en { text-align: right; }
html[dir="rtl"] .game-digits, html[dir="rtl"] .game-combo-digits, html[dir="rtl"] .game-word, html[dir="rtl"] .game-video-embed { direction: ltr; }
html[dir="rtl"] bdi[dir="ltr"] { unicode-bidi: isolate; }
.brand-en { white-space: nowrap; display: inline-block; font-size: 0.6em; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.tagline-en { margin: 0 0 0.2rem; color: var(--muted); font-size: 0.85rem; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
html[lang^="zh"] body,
html[lang^="zh"] .q-body,
html[lang^="zh"] .a-body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;
}
html[lang^="zh"] section.block h2, html[lang^="zh"] nav.pager .nav-kicker, html[lang^="zh"] .game-combo-label, html[lang^="zh"] .game-rail-title { letter-spacing: 0.04em; }
@media (max-width: 520px) {
  html { font-size: 17px; }
  .a-body { font-size: 1.2rem; }
  .q-body { font-size: 1.2rem; }
  nav.pager { font-size: 1.3rem; }
}
