:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    sans-serif;
  background: #f7f8fa;
  color: #20242c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, #fff 0, #fff 58%, #f7f8fa 100%);
}

button,
a {
  font: inherit;
}

.page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  padding:
    max(32px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(32px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));
}

.content {
  display: flex;
  width: min(100%, 420px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-icon {
  display: block;
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgb(255 66 111 / 18%);
}

h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.status {
  min-height: 48px;
  margin: 14px 0 28px;
  color: #717784;
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.5;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: #ff426f;
  color: #fff;
  cursor: pointer;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
  transition:
    background-color 120ms ease,
    transform 120ms ease;
}

.primary-button:active {
  background: #ec315f;
  transform: scale(0.99);
}

.primary-button:focus-visible,
.fallback-link:focus-visible {
  outline: 3px solid rgb(48 122 255 / 35%);
  outline-offset: 3px;
}

.fallback-link {
  margin-top: 20px;
  color: #4f596b;
  font-size: 15px;
  letter-spacing: 0;
  text-decoration: none;
}

.fallback-link:active {
  color: #20242c;
}

@media (max-height: 520px) {
  .app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 17px;
  }

  .status {
    margin-bottom: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-button {
    transition: none;
  }
}
