:root {
  /* Sampled from /icons/icon-192x192.png (red ring, navy badge, brown hat) */
  --accent: #DB1712;
  --accent-light: #FF6A4A;
  --gold: #C98A2E;
  --bg: #0d1420;
  --card-bg: #101a2b;
  --text: #f5f5f7;
  --text-dim: #a8adb8;
  --border: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at 50% -10%, rgba(219, 23, 18, 0.22), transparent 55%), var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: center;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.wordmark {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.wordmark span {
  color: var(--accent);
}

.icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin-bottom: 20px;
  /* The source PNG is a square with solid black corner fill (no alpha) around
     the circular badge — clip to a circle so those corners never show. */
  object-fit: cover;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin: 0 0 24px;
}

.countdown-wrap {
  margin-bottom: 24px;
}

.countdown-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 10px;
}

.countdown-text strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform-origin: left center;
  animation: countdown-shrink 15s linear forwards;
}

@keyframes countdown-shrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.discord-btn:hover,
.discord-btn:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill {
    animation: none;
  }
}
