*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #07070e;
  --bg-2: #0a0a14;
  --card: rgba(13, 13, 26, 0.82);
  --gold: #d4a843;
  --gold2: #f0c96b;
  --purple: #7c5cbf;
  --text: #f5efe6;
  --muted: rgba(240, 235, 224, 0.68);
  --muted-soft: rgba(240, 235, 224, 0.38);
  --border: rgba(212, 168, 67, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --radius: 28px;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at top, rgba(124, 92, 191, 0.14), transparent 35%),
    radial-gradient(circle at bottom left, rgba(212, 168, 67, 0.10), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: 'Space Mono', monospace;
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(124,92,191,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(212,168,67,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 40% at 50% 110%, rgba(124,92,191,0.10) 0%, transparent 60%);
  animation: auroraShift 8s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  from { filter: hue-rotate(0deg); transform: scale(1); }
  to { filter: hue-rotate(22deg); transform: scale(1.03); }
}

.stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.outer-ring {
  position: relative;
  width: min(100%, 480px);
}

.ring-deco,
.ring-deco-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-deco {
  inset: -24px;
  border: 1px solid rgba(212, 168, 67, 0.11);
  animation: rotateSlow 18s linear infinite;
}

.ring-deco::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--gold), 0 0 28px rgba(212,168,67,0.75);
}

.ring-deco-2 {
  inset: -42px;
  border: 1px solid rgba(124, 92, 191, 0.10);
  animation: rotateSlow 26s linear infinite reverse;
}

@keyframes rotateSlow {
  to { transform: rotate(360deg); }
}

.card {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius);
  padding: 42px 30px 30px;
  background:
    linear-gradient(145deg, rgba(16,16,30,0.92), rgba(10,10,21,0.86));
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    var(--shadow),
    0 0 70px rgba(124,92,191,0.07);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: cardReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.035) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shimmer 4s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold2), transparent);
  opacity: 0.9;
}

@keyframes shimmer {
  to { transform: translateX(120%); }
}

.ig-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 24px;
  opacity: 0;
  animation: popIn 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s forwards;
}

.ig-wrap::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,67,0.18) 0%, transparent 70%);
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.6; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.eyebrow,
.status,
.count-label,
.mini-note {
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.eyebrow {
  font-size: 10px;
  color: var(--muted-soft);
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 1s forwards;
}

.handle {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3.15rem);
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0;
  animation: fadeSlideUp 0.65s ease 1.15s forwards;
}

.handle em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 50%, var(--gold) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s ease infinite 1.8s;
}

@keyframes goldShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 1.3s forwards;
}

.sep-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.28));
}

.sep-line:last-child {
  background: linear-gradient(90deg, rgba(212,168,67,0.28), transparent);
}

.sep-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.7;
}

.message {
  font-size: 12px;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 1.45s forwards;
}

.countdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 1.6s forwards;
}

.svg-ring {
  width: 116px;
  height: 116px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 10px rgba(212,168,67,0.22));
}

.track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 3;
}

.track-glow {
  fill: none;
  stroke: rgba(212,168,67,0.08);
  stroke-width: 9;
}

.progress {
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 0;
}

.inner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.count-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold2);
  text-shadow: 0 0 22px rgba(212,168,67,0.35);
}

.count-label {
  font-size: 9px;
  color: var(--muted-soft);
  margin-top: 4px;
}

.pulse-bar {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 24px;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 1.75s forwards;
}

.bar-item {
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(to top, var(--purple), var(--gold));
  opacity: 0.76;
}

.bar-item:nth-child(1) { height: 8px; animation: barPulse 1.1s ease-in-out 0s infinite alternate; }
.bar-item:nth-child(2) { height: 16px; animation: barPulse 1.1s ease-in-out 0.15s infinite alternate; }
.bar-item:nth-child(3) { height: 22px; animation: barPulse 1.1s ease-in-out 0.30s infinite alternate; }
.bar-item:nth-child(4) { height: 16px; animation: barPulse 1.1s ease-in-out 0.15s infinite alternate; }
.bar-item:nth-child(5) { height: 8px; animation: barPulse 1.1s ease-in-out 0s infinite alternate; }

@keyframes barPulse {
  to {
    height: 5px;
    opacity: 0.32;
  }
}

.status {
  font-size: 10px;
  color: var(--muted-soft);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 1.9s forwards;
}

.dot-live {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(212,168,67,0.55);
  animation: dotRing 1.5s ease-out infinite;
}

@keyframes dotRing {
  0% { box-shadow: 0 0 0 0 rgba(212,168,67,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(212,168,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,168,67,0); }
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  animation: fadeSlideUp 0.55s ease 2.05s forwards;
}

.go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  border: 1px solid rgba(212,168,67,0.22);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #111018;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(212,168,67,0.22);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
}

.go-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(212,168,67,0.28);
}

.go-btn:active {
  transform: translateY(0);
}

.mini-note {
  font-size: 9px;
  color: var(--muted-soft);
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, rgba(212,168,67,0.15) 0%, var(--bg) 72%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.curtain.go {
  opacity: 1;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .stage {
    align-items: center;
    padding: 18px 12px;
  }

  .outer-ring {
    width: min(100%, 390px);
  }

  .ring-deco {
    inset: -16px;
  }

  .ring-deco-2 {
    inset: -28px;
  }

  .card {
    padding: 30px 18px 22px;
    border-radius: 22px;
  }

  .ig-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
  }

  .handle {
    font-size: clamp(1.8rem, 10vw, 2.45rem);
  }

  .message {
    font-size: 11px;
    line-height: 1.75;
    margin-bottom: 20px;
  }

  .svg-ring {
    width: 98px;
    height: 98px;
  }

  .count-num {
    font-size: 2.2rem;
  }

  .status {
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .go-btn {
    min-height: 46px;
    font-size: 11px;
  }
}

@media (max-height: 720px) {
  .stage {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .card {
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .ig-wrap {
    margin-bottom: 18px;
  }

  .message {
    margin-bottom: 18px;
  }

  .countdown-wrap {
    margin-bottom: 18px;
  }

  .pulse-bar {
    margin-bottom: 14px;
  }

  .status {
    margin-bottom: 14px;
  }
}