/* ==========================================================================
   Site-wide Back button (games, tools, LMS).
   One canonical look and position for every page, taken from the LMS canon
   rule in LMS/lms-styles.css. Linked from each page's <head>; the selectors
   are deliberately heavier than any page-local .back-button rule, and the
   !important flags beat page rules that hide it (e.g. "display:none" on
   mobile) or game layers that used to cover it.
   The font uses a private family name so it can't change any page's own
   "Noto Sans" text.
   ========================================================================== */
@font-face {
  font-family: "aUI Back Button";
  font-style: normal;
  font-weight: 100 900;
  font-display: block;
  src: url("NotoSans-Bold-latin.woff2") format("woff2");
}

html body .back-button,
html body #back-button {
  position: fixed !important;
  top: 15px !important;
  left: 15px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2147483000 !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  font-family: "aUI Back Button", "Noto Sans", sans-serif !important;
  font-size: 15.2px !important;
  font-weight: 700 !important;
  font-style: normal !important;
  line-height: 36px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  color: #23E9D5 !important;
  background: rgba(0, 0, 0, 0.8) !important;
  border: 2px solid #23E9D5 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease !important;
}

html body .back-button:hover,
html body .back-button:focus-visible,
html body #back-button:hover,
html body #back-button:focus-visible {
  color: #000 !important;
  background: #23E9D5 !important;
  box-shadow: 0 0 15px #23E9D5 !important;
}
