:root {
  color-scheme: light;
  --maroon-900: #6f0d11;
  --maroon-800: #801116;
  --maroon-700: #97161b;
  --maroon-600: #aa1c22;
  --gold-400: #efbd62;
  --gold-200: #f8dfad;
  --cream: #fffaf2;
  --ink: #302627;
  --muted: #746667;
  --surface: rgba(255, 255, 255, 0.94);
  --shadow: 0 30px 80px rgba(79, 20, 23, 0.18);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(239, 189, 98, 0.34), transparent 30%),
    radial-gradient(circle at 86% 82%, rgba(151, 22, 27, 0.16), transparent 34%),
    linear-gradient(145deg, #fffdf9 0%, #fff7e9 50%, #f9e9dd 100%);
}

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 28px 20px;
}

.welcome-card {
  width: min(100%, 520px);
  padding: 38px 42px 34px;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgba(128, 17, 22, 0.1);
  border-radius: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: card-in 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-mark {
  display: grid;
  width: 138px;
  height: 138px;
  margin: 0 auto 20px;
  place-items: center;
}

.brand-mark picture,
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark img {
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(98, 16, 20, 0.14));
  transform: translateZ(0);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--maroon-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  color: var(--maroon-900);
  font-size: clamp(2rem, 8vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.welcome-copy {
  margin: 10px 0 0;
  font-size: clamp(1rem, 4vw, 1.12rem);
  line-height: 1.55;
}

.welcome-copy strong {
  color: var(--maroon-700);
  font-weight: 750;
}

.description {
  margin: 17px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

#countdown {
  display: inline-block;
  min-width: 1ch;
  color: var(--maroon-700);
  font-weight: 800;
}

.progress-track {
  width: 100%;
  height: 5px;
  margin: 20px 0 24px;
  overflow: hidden;
  background: #f1e4dc;
  border-radius: 999px;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-400), var(--maroon-600));
  border-radius: inherit;
  animation: redirect-progress 4s linear forwards;
}

.primary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 25px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 750;
  text-decoration: none;
  background: linear-gradient(135deg, var(--maroon-600), var(--maroon-900));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 15px;
  box-shadow: 0 13px 28px rgba(128, 17, 22, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 32px rgba(128, 17, 22, 0.28);
  filter: saturate(1.08);
}

.primary-button:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 4px;
}

.primary-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.primary-button:hover svg {
  transform: translateX(3px);
}

.fallback-note,
.noscript-note {
  margin: 16px 0 0;
  color: #8a7a7b;
  font-size: 0.77rem;
  line-height: 1.45;
}

.noscript-note {
  color: var(--maroon-700);
  font-weight: 650;
}

.decor {
  position: fixed;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
}

.decor-one {
  top: -130px;
  right: -90px;
  width: 360px;
  height: 360px;
  background: linear-gradient(145deg, rgba(151, 22, 27, 0.19), rgba(239, 189, 98, 0.08));
}

.decor-two {
  bottom: -170px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: linear-gradient(145deg, rgba(239, 189, 98, 0.28), rgba(151, 22, 27, 0.06));
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes redirect-progress {
  to {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .page-shell {
    padding: 16px;
  }

  .welcome-card {
    padding: 30px 22px 27px;
    border-radius: 24px;
  }

  .brand-mark {
    width: 118px;
    height: 118px;
    margin-bottom: 17px;
  }
}

@media (max-height: 650px) {
  .page-shell {
    padding-block: 12px;
  }

  .welcome-card {
    padding-block: 22px;
  }

  .brand-mark {
    width: 92px;
    height: 92px;
    margin-bottom: 12px;
  }

  .description {
    margin-top: 11px;
  }

  .progress-track {
    margin-block: 14px 18px;
  }
}

@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;
  }
}
