/* Public content and help are independent of the game bundle and its styles. */
#public-home {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: auto;
  color: #ebebeb;
  background: #0f2342;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: start;
  color-scheme: dark;
  user-select: text;
  -webkit-user-select: text;
}
#public-home[hidden], #public-home [hidden] { display: none !important; }
#public-home *, #public-home *::before, #public-home *::after { box-sizing: border-box; }
#public-home .cx-wrap { max-width: 800px; margin: auto; padding: 28px 24px 40px; }
#public-home .cx-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
#public-home .cx-brand { margin: 0; font: 750 28px/1.2 system-ui, sans-serif; color: #fff; text-decoration: none; text-transform: none; }
#public-home .cx-language { display: flex; align-items: center; gap: 10px; font-size: 14px; }
#public-home select { min-height: 44px; padding: 8px 12px; background: #262f47; border: 1px solid #ebebeb80; border-radius: 0; color: #fff; font: inherit; }
#public-home p { margin: 0 0 16px; color: #d0dae8; font: inherit; }
#public-home .cx-status { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 50vh; padding: 24px 0; margin-bottom: 24px; text-align: center; }
#public-home .cx-loading-logo { display: block; width: 100%; max-width: 900px; height: auto; }
#public-home .cx-help { border: 1px solid #ebebeb4d; border-radius: 0; background: #262f47; margin: 24px 0; }
#public-home summary { padding: 18px 20px; min-height: 60px; cursor: pointer; font-size: 20px; font-weight: 750; color: #fff; }
#public-home .cx-help-body { padding: 12px 20px 20px; }
#public-home .cx-help ol { padding-inline-start: 25px; margin: 18px 0 24px; }
#public-home .cx-help li { margin: 0 0 12px; padding-inline-start: 5px; }
#public-home .cx-help li::marker { color: #12cc94; font-weight: 800; }
#public-home .cx-help strong { display: block; color: #fff; margin-bottom: 3px; }
#public-home .cx-help li span { color: #d0dae8; }
#public-home .cx-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
#public-home .cx-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border-radius: 0; border: 1px solid #41e8ff; color: #fff; background: linear-gradient(180deg, #1ee3f759, #1ee3f726); text-decoration: none; font: 900 16px/1.4 system-ui, sans-serif; text-align: center; text-transform: uppercase; }
#public-home .cx-button-green { background: #2bb66b; color: #092418; border: 1px solid #2bb66b; border-bottom: 4px solid #288b62; }
#public-home .cx-button:hover { filter: brightness(1.12); }
#public-home :focus-visible { outline: 3px solid #1ee3f7; outline-offset: 3px; }
/* Keep the automatic summary focus inside its own box, away from the explanation. */
#public-home summary:focus-visible { outline-offset: -3px; }
#public-home .cx-small { font-size: 14px; color: #bac8db; }
#public-home .cx-return { display: inline-flex; align-items: center; min-height: 44px; color: #c8e7ff; }
#public-home code { display: inline-block; max-width: 100%; padding: 4px 8px; border-radius: 0; background: #0f2342; color: #fff; overflow-wrap: anywhere; font: 14px/1.5 ui-monospace, monospace; user-select: all; }
#public-home a, #public-home summary, #public-home select { cursor: pointer !important; }
@media (max-width: 680px) {
  #public-home .cx-wrap { padding: 20px 18px 36px; }
  #public-home .cx-header { margin-bottom: 24px; flex-wrap: wrap; }
  #public-home summary { padding: 18px; font-size: 19px; }
  #public-home .cx-help-body { padding: 12px 18px 20px; }
  #public-home .cx-actions { align-items: stretch; flex-direction: column; }
}
