:root {
  --bg: #0a0a0d;
  --gold: #d6b76a;
  --text-primary: #f2f0eb;
  --text-secondary: #a8a6a0;
  --border: #232227;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.wrap {
  max-width: 520px;
  width: 100%;
  padding: 16px;
  animation: fade-in 1.1s ease-out both;
}

.icon {
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 14px rgba(214, 183, 106, 0.35));
  animation: pulse-glow 3.4s ease-in-out infinite;
}

h1 {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
  color: var(--text-primary);
}

.body-text {
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 2rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(214, 183, 106, 0.7);
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.loading-bar {
  width: 100%;
  max-width: 260px;
  height: 3px;
  margin: 0 auto;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.loading-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: indeterminate 2.4s ease-in-out infinite;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(214, 183, 106, 0.25));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(214, 183, 106, 0.55));
    transform: scale(1.04);
  }
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(214, 183, 106, 0.5);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(214, 183, 106, 0.9);
  }
}

@keyframes indeterminate {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding: 8px;
  }

  .icon {
    font-size: 2.75rem;
  }
}

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

  .icon {
    animation: none;
    filter: drop-shadow(0 0 12px rgba(214, 183, 106, 0.35));
  }

  .dot {
    animation: none;
    opacity: 1;
  }

  .loading-bar-fill {
    animation: none;
    left: 0;
    width: 100%;
    opacity: 0.35;
  }
}
