/* Standalone information pages. No game selectors, global variables or game resets. */
.info-page,
.info-page *,
.info-footer,
.info-footer * { box-sizing: border-box; }

.info-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: #2a1e3f;
  background-color: #173f9e;
  background-image:
    radial-gradient(circle at 9% 32%, #ffffff24 0 12px, transparent 13px),
    radial-gradient(circle at 91% 57%, #ffffff20 0 18px, transparent 19px),
    radial-gradient(circle at 15% 84%, #ffffff20 0 7px, transparent 8px),
    linear-gradient(180deg, #6fe0f2 0%, #2492e0 46%, #173f9e 100%);
  background-attachment: fixed;
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color-scheme: light;
}

.info-page a { color: #1556a7; text-underline-offset: 3px; }
.info-page a:hover { text-decoration-thickness: 2px; }
.info-page a:focus-visible,
.info-footer a:focus-visible { outline: 3px solid #ffd23a; outline-offset: 4px; }
.info-page .info-paper a:focus-visible { outline-color: #1556a7; }

.info-page .info-header {
  max-width: 960px;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.info-page .info-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #2a1e3f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
}
.info-page .info-brand img { flex: none; }
.info-page .info-brand small { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; }
.info-page .info-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  flex-shrink: 0;
  padding: 8px 18px;
  border: 2px solid #2a1e3f;
  border-radius: 14px;
  box-shadow: 0 4px 0 #2a1e3f;
  background: #ffd23a;
  color: #2a1e3f;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}
.info-page .info-play:hover { background: #ffe477; }

.info-page .info-paper {
  width: calc(100% - 40px);
  max-width: 880px;
  margin: 0 auto;
  padding: 38px clamp(24px, 6vw, 68px) 42px;
  border: 3px solid #2a1e3f;
  border-radius: 28px;
  background: #fffdf6;
  box-shadow: 0 8px 0 #2a1e3f, 0 20px 45px #0a1e5059;
  overflow-wrap: anywhere;
}
.info-page .info-breadcrumb { margin: 0 0 18px; font-size: 14px; color: #53627c; }
.info-page .info-breadcrumb a { display: inline-block; padding: 6px 0; }
.info-page h1 { margin: 0 0 12px; font-size: clamp(30px, 6vw, 44px); line-height: 1.15; font-weight: 900; letter-spacing: -0.025em; }
.info-page .info-updated { margin: 0 0 24px; color: #53627c; font-size: 13px; }
.info-page .info-lead { margin: 0 0 28px; padding: 16px 20px; border-inline-start: 5px solid #1b6fd0; border-start-end-radius: 12px; border-end-end-radius: 12px; background: #eaf5fc; color: #234b75; font-size: 19px; font-weight: 700; line-height: 1.55; }
.info-page section { margin-top: 30px; padding-top: 26px; border-top: 1px solid #d9dce4; }
.info-page h2 { margin: 0 0 12px; font-size: 24px; line-height: 1.3; color: #234b75; font-weight: 800; }
.info-page h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; }
.info-page p { margin: 0 0 16px; }
.info-page section > :last-child { margin-bottom: 0; }
.info-page ol,
.info-page ul { padding-inline-start: 24px; margin: 14px 0 20px; }
.info-page li { padding-inline-start: 4px; margin-bottom: 14px; }
.info-page li::marker { color: #1556a7; font-weight: 800; }
.info-page dl { margin: 16px 0; }
.info-page dt { margin-top: 18px; font-weight: 800; color: #1556a7; }
.info-page dd { margin: 4px 0 16px; }
.info-page code { font-size: 0.9em; padding: 2px 5px; border-radius: 4px; background: #edf1f6; }
.info-page .info-credit-list { list-style: none; padding: 0; }
.info-page section[id] { scroll-margin-top: 16px; }
.info-page .info-credit-list li { padding: 18px; background: #eaf5fc; border-radius: 14px; }

/* Shared markup can also be used by the game home screen and SSR shell. */
.info-footer {
  width: calc(100% - 32px);
  max-width: 880px;
  margin: 30px auto 0;
  padding: 20px 18px max(22px, env(safe-area-inset-bottom));
  border: 1px solid #ffffff40;
  border-radius: 18px;
  background: #14377d;
  color: #fff;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  overflow-wrap: anywhere;
}
.info-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
.info-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.info-footer nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; }
.info-footer nav a:hover { color: #2a1e3f; background: #fffdf6; }
.info-footer nav a[aria-current="page"] { color: #2a1e3f; background: #ffd23a; }
.info-footer p { margin: 12px 0 0; }
.info-footer p a { display: inline-block; padding: 4px 0; }
.info-page > .info-footer { margin-bottom: 32px; }
.info-footer .info-langs { gap: 2px 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #ffffff30; }
.info-footer .info-langs a { min-height: 36px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.info-footer .info-langs a[aria-current="true"] { color: #2a1e3f; background: #ffd23a; }

.info-page .info-skip { position: absolute; top: -100px; inset-inline-start: 12px; z-index: 2; padding: 10px 16px; border: 2px solid #2a1e3f; border-radius: 10px; background: #fffdf6; color: #1556a7; font-weight: 700; }
.info-page .info-skip:focus { top: 10px; }

@media (max-width: 540px) {
  .info-page { font-size: 16px; line-height: 1.65; }
  .info-page .info-header { gap: 14px; padding: max(18px, env(safe-area-inset-top)) 18px 22px; flex-wrap: wrap; }
  .info-page .info-brand { font-size: 21px; }
  .info-page .info-brand small { font-size: 11px; }
  .info-page .info-play { padding: 8px 12px; font-size: 14px; }
  .info-page .info-paper { width: calc(100% - 24px); padding: 24px 20px 28px; border-radius: 22px; }
  .info-page h2 { font-size: 22px; }
  .info-page .info-lead { padding: 14px 16px; font-size: 18px; }
  .info-page section { margin-top: 24px; padding-top: 22px; }
  .info-footer { width: calc(100% - 24px); padding: 16px 10px max(18px, env(safe-area-inset-bottom)); }
}

@media print {
  .info-page { background: #fff; font-size: 11pt; }
  .info-page .info-header,
  .info-page .info-skip,
  .info-page > .info-footer { display: none; }
  .info-page .info-paper { width: 100%; max-width: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .info-page h2 { break-after: avoid; }
}
