/*
 * Shown only when JavaScript is off (<noscript> in index.html). Messages are
 * encrypted and decrypted in the browser, so the app cannot run without it;
 * this replaces a spinner that would otherwise never stop.
 *
 * A separate file rather than loading.css: public files keep their names and
 * are cached for a year, so styles added to an existing file would not reach
 * returning visitors. It covers the page instead of hiding the spinner, so it
 * needs no inline <style>.
 */
.noscript-screen {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  background: #0a0a0a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.noscript-card {
  /* margin: auto centres it without clipping the top when it is taller than the screen */
  margin: auto;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 40px 32px;
  text-align: center;
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.noscript-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  color: rgba(245, 245, 245, 0.85);
}

.noscript-title {
  margin: 0 0 12px;
  color: #f5f5f5;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.noscript-text {
  margin: 0 0 28px;
  color: rgba(245, 245, 245, 0.6);
  font-size: 15px;
  line-height: 1.6;
}

.noscript-button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.noscript-button:hover {
  background: #ffffff;
}

.noscript-button:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 3px;
}

@media (max-width: 360px) {
  .noscript-card {
    padding: 32px 20px;
  }
}
