:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: #244c69;
  background: #f1faff;
  font-synthesis: none;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  min-height: 100dvh;
}

#initWin {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 48px 20px 72px;
  background: #f1faff;
  background: radial-gradient(#ffffff, #b8d0e1);
}

#initWin::before,
#initWin::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

#initWin::before {
  top: -180px;
  right: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(56, 146, 212, 0.12);
  box-shadow: 0 0 0 42px rgba(255, 255, 255, 0.12), 0 0 0 84px rgba(56, 146, 212, 0.04);
}

#initWin::after {
  bottom: -110px;
  left: -90px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.16);
}

.maintenance-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  padding: 48px 52px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: 0 24px 70px rgba(47, 102, 143, 0.15);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.status-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 22px;
  color: #3892d4;
  background: linear-gradient(145deg, #ffffff, #dceefa);
  box-shadow: 0 12px 28px rgba(56, 146, 212, 0.2);
}

.status-icon svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.eyebrow {
  margin: 0 0 12px;
  color: #3892d4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #245f89;
  font-size: clamp(30px, 6vw, 44px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.description {
  max-width: 480px;
  margin: 22px auto 0;
  color: #4a6f89;
  font-size: 17px;
  line-height: 1.65;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #2f668f;
  background: rgba(56, 146, 212, 0.09);
  font-size: 14px;
  font-weight: 600;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3892d4;
  box-shadow: 0 0 0 0 rgba(56, 146, 212, 0.45);
  animation: pulse 2s ease-out infinite;
}

.retry-button {
  display: block;
  min-width: 190px;
  margin: 26px auto 0;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: #3892d4;
  box-shadow: 0 8px 20px rgba(56, 146, 212, 0.24);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.retry-button:hover {
  background: #2d82c0;
  box-shadow: 0 10px 24px rgba(56, 146, 212, 0.3);
  transform: translateY(-1px);
}

.retry-button:active { transform: translateY(0); }

.retry-button:focus-visible {
  outline: 3px solid rgba(56, 146, 212, 0.32);
  outline-offset: 4px;
}

.footer {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  margin: 0;
  color: rgba(36, 76, 105, 0.66);
  font-size: 13px;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(56, 146, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(56, 146, 212, 0); }
}

@media (max-width: 560px) {
  #initWin { padding: 32px 16px 64px; }
  .maintenance-card { padding: 36px 22px; border-radius: 22px; }
  .status-icon { width: 68px; height: 68px; margin-bottom: 20px; border-radius: 20px; }
  .description { font-size: 16px; }
}

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