:root {
  --decode-red: #ae0533;
  --background: #fff;
  --fontcolor: #3f3f3f;
  --ring-track: #eee6e9;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--decode-red);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--background);
}

.site-header {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 10px 20px;
  background: var(--decode-red);
  box-shadow: 0 2px 10px rgba(0, 0, 66, 0.18);
}

.logo {
  display: block;
  width: auto;
  height: 60px;
  object-fit: contain;
  margin-bottom: -10px;
}

.page-shell {
  display: grid;
  min-height: calc(100dvh - 72px);
  place-items: center;
  padding: 48px 24px;
  text-align: center;
}

.redirect-panel {
  display: grid;
  width: min(820px, 100%);
  justify-items: center;
  gap: 26px;
}

.message {
  width: min(760px, 100%);
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--fontcolor);
}

.message h1 {
  margin: 0 0 18px;
  color: var(--decode-red);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.2;
}

.message p {
  margin: 0;
}

.message p + p {
  margin-top: 14px;
}

.message a {
  color: var(--decode-red);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.countdown {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.countdown-ring {
  --progress-angle: 360deg;
  position: relative;
  display: grid;
  width: 50px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 57%, transparent 58%),
    conic-gradient(
      var(--decode-red) var(--progress-angle),
      var(--ring-track) 0
    );
  box-shadow:
    0 1px 2px rgba(174, 5, 51, 0.08),
    0 8px 18px rgba(174, 5, 51, 0.06);
  transition: opacity 180ms ease;
}

.countdown-ring::after {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 248, 0.98));
  border: 1px solid rgba(174, 5, 51, 0.08);
  box-shadow: inset 0 1px 2px rgba(174, 5, 51, 0.04);
  content: "";
}

.countdown-ring.is-ticking {
  opacity: 0.88;
}

#countdown-number {
  position: relative;
  z-index: 1;
  color: var(--decode-red);
  font-size: 30px;
  font-weight: 500;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.countdown-copy {
  margin: 0;
  color: rgba(63, 63, 63, 0.62);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
}

@media (max-width: 440px) {
  .site-header {
    min-height: 64px;
  }

  .logo {
    height: 34px;
  }

  .page-shell {
    min-height: calc(100dvh - 64px);
  }

  .redirect-panel {
    gap: 22px;
  }
}
