/* The crash screen and bar (js/core/CrashScreen.js) and the old-browser notice (js/old-browser.js). Plain colours on
   purpose: it must work even when the theme failed to load. Shared by the game, Craft and both configurators. */
.crash-bg {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 30, 45, 0.72);
  font-family:
    'Nunito',
    system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}
.crash-box {
  width: 560px;
  max-width: 100%;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 26px 28px;
  border-radius: 20px;
  background: #fff;
  color: #1f2a37;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.crash-ic {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 8px;
}
.crash-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #17324d;
}
.crash-box p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: #435466;
}
.crash-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crash-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 2px solid #dce6ef;
  border-radius: 12px;
  background: #fff;
  color: #17324d;
  font: 700 15px/1 inherit;
  font-family: inherit;
  cursor: pointer;
}
.crash-btn.pri {
  border-color: #e35f1e;
  background: #ff7a3d;
  color: #fff;
}
.crash-btn:focus-visible {
  outline: 3px solid #17324d;
  outline-offset: 2px;
}
.crash-box details {
  margin-top: 18px;
  text-align: left;
  font-size: 13px;
  color: #5b6b7c;
}
.crash-box summary {
  cursor: pointer;
  font-weight: 700;
}
.crash-box pre {
  margin: 8px 0 0;
  padding: 10px;
  max-height: 180px;
  overflow: auto;
  border-radius: 10px;
  background: #f4f8fb;
  white-space: pre-wrap;
  word-break: break-word;
  font:
    12px/1.4 ui-monospace,
    Menlo,
    Consolas,
    monospace;
}
.crash-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 2147483000;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px;
  border-radius: 14px;
  background: #17324d;
  color: #fff;
  font:
    700 14px/1.3 'Nunito',
    system-ui,
    sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.crash-bar .crash-btn {
  min-height: 34px;
  padding: 0 12px;
  border-color: transparent;
}
.crash-bar .crash-btn:not(.pri) {
  background: transparent;
  color: #fff;
}
/* The old-browser notice: shown by a classic script when the browser can't run modern JavaScript. */
.old-browser {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #eef4f9;
  color: #17324d;
  font:
    18px/1.5 system-ui,
    sans-serif;
  text-align: center;
}
.old-browser div {
  max-width: 560px;
}
.old-browser b {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}
