/* Visible by default; hidden only after the early JavaScript check succeeds. */
html.no-js,
html.no-js body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.no-js body {
  position: fixed;
  inset: 0;
  touch-action: none;
}

html.js .javascript-required {
  display: none !important;
}

.javascript-required {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  background: var(--page, #171819);
  color: var(--text, #e6e7e9);
  font-family: var(--font, system-ui, sans-serif);
  visibility: visible !important;
  opacity: 1 !important;
}

.javascript-required-panel {
  width: min(100%, 620px);
  padding: clamp(24px, 6vw, 48px);
  border: 1px solid var(--border, #34363a);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface, #202124);
  text-align: center;
  box-shadow: var(--shadow, 0 16px 45px rgba(0, 0, 0, .22));
}

.javascript-required-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--admin-accent, #e38508);
  fill: currentColor;
}

.javascript-required h1 {
  margin: 0;
  color: var(--text, #e6e7e9);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
}

.javascript-required p {
  margin: 14px auto 0;
  max-width: 48ch;
  color: var(--text-2, #c5c7cb);
  font-size: 1rem;
  line-height: 1.6;
}

.javascript-required-reload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--h, 42px);
  margin-top: 24px;
  padding: 0 18px;
  border: 1px solid var(--btn-primary-border, #3a78bd);
  border-radius: var(--radius-sm, 8px);
  background: var(--btn-primary-bg, #2f6fb8);
  color: var(--btn-primary-text, #fff);
  font-weight: 700;
  text-decoration: none;
}

.javascript-required-reload:focus-visible {
  outline: 3px solid var(--focus-color, #2f6fb8);
  outline-offset: 3px;
}
