:root {
  --bg: #f4f4f4;
  --text: #2f2f2f;
  --muted: #666666;
  --line: #dddddd;
  --button: #444444;
  --button-dark: #222222;
  --dot: #777777;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 680px;
  padding: 40px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.brand-name {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.badge {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #444444;
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
}

.message {
  margin: 0 auto 8px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
}

.note,
.help,
.retry-text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.note {
  margin: 0 auto 28px;
  max-width: 560px;
}

.status-box {
  margin: 0 auto 24px;
  padding: 20px;
  max-width: 480px;
  text-align: left;
  background: #fbfcfb;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 5px #eeeeee;
  animation: pulse 1.5s ease-in-out infinite;
}

dl {
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  color: #333333;
  font-weight: 700;
  text-align: right;
}

.retry-text {
  margin: 0 0 16px;
}

.retry-text strong {
  color: var(--text);
  min-width: 20px;
  display: inline-block;
}

button {
  min-height: 46px;
  padding: 0 22px;
  color: var(--white);
  background: var(--button);
  border: 1px solid var(--button);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--button-dark);
  border-color: var(--button-dark);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid rgba(80, 80, 80, 0.35);
  outline-offset: 4px;
}

.help {
  margin: 22px 0 0;
}

footer {
  margin-top: 22px;
  color: #7d8985;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 20px 12px;
  }

  .card {
    padding: 28px 20px;
    border-radius: 18px;
  }

  h1 {
    font-size: 32px;
  }

  .message {
    font-size: 16px;
  }

  dl div {
    flex-direction: column;
    gap: 3px;
  }

  dd {
    text-align: left;
  }

  button {
    width: 100%;
  }
}
