:root {
  --bg: #0f0a1e;
  --bg2: #1d1140;
  --fg: #fff6d6;
  --muted: #b8a9d9;
  --gold: #ffc53d;
  --gold2: #ff8a3d;
  --card: rgba(255, 255, 255, 0.06);
}

* { box-sizing: border-box; }

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: radial-gradient(1200px 800px at 50% -10%, var(--bg2), var(--bg) 70%);
  display: grid;
  place-items: center;
  padding: 24px 16px;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 4px 0 28px;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.1;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  flex-wrap: wrap;
}

.unit {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 10px;
  min-width: 78px;
  flex: 1 1 78px;
  max-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.num {
  font-size: clamp(34px, 8vw, 72px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.lbl {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.sep {
  font-size: clamp(34px, 8vw, 72px);
  font-weight: 800;
  line-height: 1;
  align-self: center;
  color: var(--muted);
}

@media (max-width: 420px) {
  .sep { display: none; }
  .unit { flex-basis: 44%; max-width: none; }
}

.target {
  margin: 14px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.lion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

video {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.btn {
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #1a1200;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 197, 61, 0.35);
  transition: transform 0.1s;
}

.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.97); }

.hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.arrived {
  margin-top: 32px;
  animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.arrived h2 {
  font-size: clamp(32px, 9vw, 80px);
  margin: 0 0 8px;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(255, 197, 61, 0.6);
  animation: shake 0.5s infinite;
}

@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes shake {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

body.party .countdown { display: none; }
body.party .kicker { visibility: hidden; }

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
