:root {
  --gold: #c9a84c;
  --gold-light: #e2c97e;
  --gold-dim: #8b6f35;
  --obsidian: #0d0d0d;
  --charcoal: #1a1a1a;
  --slate: #2c2c2c;
  --ash: #7e7e7e;
  --ivory: #f5f2ec;
  --glass: rgba(18, 18, 18, 0.62);
  --glass-border: rgba(201, 168, 76, 0.18);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --display: 'Cormorant Garamond', serif;
  --body: 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: var(--body);
  background:
    radial-gradient(circle at top left, rgba(201, 168, 76, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(226, 201, 126, 0.08), transparent 30%),
    linear-gradient(145deg, #090909 0%, #111111 42%, #0b0b0b 100%);
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.04);
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light));
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.45);
  transition: width 0.15s linear;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.48;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite;
}

.ambient-one {
  width: 260px;
  height: 260px;
  top: 8%;
  left: 8%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.32), rgba(201, 168, 76, 0.02) 72%);
}

.ambient-two {
  width: 320px;
  height: 320px;
  right: 6%;
  bottom: 10%;
  animation-delay: -4s;
  background: radial-gradient(circle, rgba(226, 201, 126, 0.22), rgba(226, 201, 126, 0.02) 72%);
}

.ambient-three {
  width: 180px;
  height: 180px;
  left: 50%;
  top: 18%;
  animation-delay: -8s;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.01) 72%);
}

.redirect-card {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  padding: clamp(28px, 4vw, 48px);
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.72), rgba(13, 13, 13, 0.58));
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: reveal 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.redirect-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(226, 201, 126, 0.42), transparent 35%, rgba(201, 168, 76, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: float 6s ease-in-out infinite;
}

.logo-mark {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-light);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.3rem);
  line-height: 0.92;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ivory);
}

.message {
  margin: 18px auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.75;
  color: rgba(245, 242, 236, 0.72);
}

.count {
  display: inline-flex;
  min-width: 1.2em;
  justify-content: center;
  color: var(--gold-light);
  font-weight: 600;
}

.actions {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 76, 0.45);
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.98), rgba(139, 111, 53, 0.92));
  color: #0d0d0d;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 18px 35px rgba(201, 168, 76, 0.2);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.primary-btn span {
  position: relative;
  z-index: 1;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(226, 201, 126, 0.22), 0 22px 44px rgba(201, 168, 76, 0.3);
  filter: brightness(1.05);
}

.primary-btn::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-120%) rotate(18deg);
  transition: transform 0.65s ease;
}

.primary-btn:hover::after,
.primary-btn:focus-visible::after {
  transform: translateX(120%) rotate(18deg);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: scale(0);
  animation: ripple 650ms ease-out;
  pointer-events: none;
  z-index: 0;
}

.hint,
.noscript-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(245, 242, 236, 0.5);
}

.noscript-note {
  margin-top: 18px;
  color: rgba(226, 201, 126, 0.88);
}

.reveal {
  animation: pop 360ms ease-out both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes pop {
  from {
    opacity: 0.2;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 0) scale(1.06); }
}

@keyframes ripple {
  from {
    opacity: 0.55;
    transform: scale(0);
  }
  to {
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  body {
    overflow: auto;
  }

  .page-shell {
    padding: 24px 16px;
  }

  .redirect-card {
    border-radius: 22px;
    padding: 24px 20px;
  }

  .logo-wrap {
    width: 84px;
    height: 84px;
  }

  .logo-mark {
    width: 62px;
    height: 62px;
  }

  .primary-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .progress-bar {
    transition: none;
  }
}