/* The same language control is used by Mine, PPP, and both games. */
.site-language-bar {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  width: min(1120px, calc(100% - 32px));
  margin: 14px auto 0;
  position: relative;
  z-index: 5;
}
.site-language-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e3d5df;
  border-radius: 999px;
  padding: 3px 6px 3px 16px;
  background: #fffdfaf2;
  color: #544555;
  box-shadow: 0 3px 12px #73576b09;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 650;
  max-width: 100%;
}
.site-language-control select {
  min-height: 38px;
  min-width: 110px;
  border: 0;
  border-radius: 999px;
  background: #faedf4;
  color: #544555;
  font: inherit;
  font-size: 14px;
  padding: 6px 28px 6px 12px;
  cursor: pointer;
}
.site-language-control select:focus-visible {
  outline: 3px solid #3d87b8;
  outline-offset: 3px;
}
.language-alternates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  padding: 18px 12px;
  font-size: 13px;
}
.language-alternates a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #655366;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language-alternates a[aria-current="true"] { font-weight: 800; }
html:lang(en) { word-break: normal; overflow-wrap: break-word; }
html:lang(ko) { word-break: keep-all; overflow-wrap: break-word; }
html:lang(zh) { word-break: normal; }
html:lang(ko) body { font-family: "M PLUS Rounded 1c", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }
html:lang(zh) body { font-family: "M PLUS Rounded 1c", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.play-body .site-language-bar { width: min(720px, calc(100% - 24px)); margin-top: 5px; margin-bottom: 5px; }
.play-body .site-language-control { font-size: 11px; padding-top: 1px; padding-bottom: 1px; }
.play-body .site-language-control select { min-height: 32px; font-size: 12px; }
/* PPP has a fixed header. Keep the selector below it rather than underneath it. */
html[data-site-section="ppp"] .site-language-bar {
  position: absolute;
  top: 104px;
  left: 0;
  right: 0;
  margin: 0 auto;
}
html:not(:lang(ja)) .family-heading h2 small,
html:not(:lang(ja)) .secret-heading h2 small {
  display: none;
}
/* Retain the Catch layout, allowing narrow viewports with a scrollbar gutter. */
html[data-game="catch"] body { min-width: 0; }
.site-credits {
  text-align: center;
  color: #756571;
  font-size: 11px;
  line-height: 1.7;
  padding: 14px 16px max(20px, env(safe-area-inset-bottom));
}
.site-credits p, .site-credit-name { margin: 5px 0; font-size: 11px; }
.site-info-link, .site-credits a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 11px;
  color: inherit;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.site-info-link:focus-visible, .site-credits a:focus-visible {
  outline: 3px solid #3d87b8;
  outline-offset: 3px;
  border-radius: 99px;
}
@media (max-width: 980px) {
  html[data-site-section="ppp"] .site-language-bar { top: 90px; }
}
@media (max-width: 420px) {
  .site-language-bar { width: calc(100% - 24px); }
  .site-language-control { font-size: 11px; }
}
