* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
  font-family: "Eczar", serif;
  background: #050505;
  color: white;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-x: hidden;
}

.veil-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(54, 1, 163, 0.35), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(54, 1, 63, 0.55), transparent 40%),
    url("bg-veilcraft.png") center center / cover no-repeat;
  z-index: 0;
}

.veil-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(1px);
}

.gradient-sphere {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}

.sphere-1 {
  width: 20vw;
  height: 20vw;
  background: linear-gradient(40deg, rgba(54, 1, 163, 0.8), rgba(58, 3, 185, 0.4));
  top: -10%;
  left: -10%;
}

.sphere-2 {
  width: 25vw;
  height: 25vw;
  background: linear-gradient(240deg, rgba(54, 1, 163, 0.8), rgba(158, 3, 185, 0.4));
  bottom: -20%;
  right: -10%;
}

.sphere-3 {
  width: 10vw;
  height: 10vw;
  background: linear-gradient(120deg, rgba(54, 1, 163, 0.5), rgba(98, 16, 249, 0.3));
  top: 60%;
  left: 20%;
}

.particles-container {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.veil-container {
  position: relative;
  z-index: 10;
  width: min(100%, 680px);
  padding: 2.5rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(54, 1, 163, 0.35);
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(54, 1, 163, 0.8);
  animation: fadeIn 1.4s ease forwards;
}

#gate-form,
#riddle-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #ffffff, #bca6d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.veil-text,
.riddle-text {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
}

.riddle-text {
  letter-spacing: 0.04em;
}

input {
  width: min(100%, 360px);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
  font-size: 1.1rem;
  text-align: center;
  color: white;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid #a84ae2;
  border-radius: 8px;
}

input:focus {
  outline: 2px solid #c073ff;
  background: rgba(40, 25, 50, 0.95);
}

button {
  display: block;
  margin: 0 auto;
  padding: 0.8rem 1.8rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #a84ae2, #6737b4);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(168, 74, 226, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 30px rgba(192, 115, 255, 0.65);
}

.error-text {
  display: none;
  margin-top: 1.4rem;
  color: #c073ff;
  font-size: 1rem;
  font-style: italic;
}
.reward-container {
  max-width: 720px;
}

.seal-mark {
  font-size: 2.4rem;
  margin-bottom: 0.5rem;
  color: #c073ff;
  text-shadow: 0 0 18px rgba(192, 115, 255, 0.8);
}
.countdown {
  margin-top: 2rem;
  font-size: 1.4rem;
  color: #c073ff;
  text-align: center;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(192, 115, 255, 0.6);
}
.reward-lines {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
}

.ritual-instruction {
  margin: 2rem auto;
  padding: 1.4rem;
  border: 1px solid rgba(168, 74, 226, 0.4);
  border-radius: 12px;
  background: rgba(168, 74, 226, 0.08);
  box-shadow: inset 0 0 18px rgba(168, 74, 226, 0.12);
}

.ritual-instruction p {
  margin-bottom: 0.6rem;
}

.ritual-instruction strong {
  display: block;
  font-size: 1.8rem;
  color: #ffffff;
  text-shadow: 0 0 16px rgba(192, 115, 255, 0.75);
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
