/* =====================================
   UNRETURNED ECHO
   THE HALL OF UNANSWERED ECHOES
===================================== */

.theme-unreturned-echo {
  margin: 0;
  min-height: 100vh;
  background: #070710;
  color: #ddd7e9;
  font-family: Georgia, serif;
}

/* WORLD */

.echo-world {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 65px 22px 80px;
  box-sizing: border-box;
  text-align: center;

  background:
    radial-gradient(
      ellipse at 50% 36%,
      rgba(79, 58, 118, 0.22),
      transparent 48%
    ),
    linear-gradient(
      to bottom,
      #080811,
      #10101c 58%,
      #06060d
    );
}

/* CHAMBER */

.echo-chamber {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.echo-arches {
  position: absolute;
  inset: 0;

  background:
    repeating-radial-gradient(
      ellipse 65% 75% at 50% 40%,
      transparent 0,
      transparent 80px,
      rgba(143, 124, 180, 0.075) 83px,
      transparent 89px,
      transparent 125px
    );

  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.9),
    transparent 85%
  );

  opacity: 0.7;
}

.echo-floor {
  position: absolute;
  left: -30%;
  bottom: -15%;
  width: 160%;
  height: 55%;

  background:
    radial-gradient(
      ellipse at center,
      rgba(124, 101, 175, 0.14),
      transparent 65%
    );

  transform: perspective(450px) rotateX(65deg);
  filter: blur(8px);
}

/* HEADER */

.echo-header {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.echo-realm {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: #a89bc2;
}

.echo-header h1 {
  margin: 20px 0;
  font-size: clamp(2.2rem, 7vw, 4rem);
  font-weight: normal;
  color: #e3d9f4;

  text-shadow:
    0 0 20px rgba(167, 138, 221, 0.25);
}

.echo-subtitle {
  color: #a9a0b8;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.8;
}

/* RESON'S SANCTUARY */

.echo-sanctuary {
  position: relative;
  z-index: 1;
  margin: 85px auto 95px;
}

.reson-stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin: auto;

  display: flex;
  align-items: center;
  justify-content: center;
}

.reson {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  cursor: pointer;

  background:
    radial-gradient(
      circle,
      #f0e8ff 0%,
      #c4b0ed 18%,
      #8063b9 42%,
      rgba(83, 59, 131, 0.25) 70%,
      transparent 100%
    );

  box-shadow:
    0 0 22px rgba(190, 166, 241, 0.45),
    0 0 65px rgba(125, 92, 193, 0.25);

  animation: reson-breathe 4s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.reson:hover {
  transform: scale(1.12);
}

.reson:focus-visible {
  outline: 2px solid #d8c4ff;
  outline-offset: 8px;
}

.reson-core {
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  background: #f7f1ff;
  filter: blur(5px);
}

/* ECHO RIPPLES */

.reson-ripples {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.echo-ripple {
  position: absolute;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(200, 177, 255, 0.75);
  border-radius: 50%;

  box-shadow:
    0 0 16px rgba(156, 122, 235, 0.35);

  animation: echo-expand 3.5s ease-out forwards;
}

@keyframes echo-expand {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  100% {
    transform: scale(8);
    opacity: 0;
  }
}

@keyframes reson-breathe {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(190, 166, 241, 0.4),
      0 0 65px rgba(125, 92, 193, 0.2);
  }

  50% {
    box-shadow:
      0 0 32px rgba(205, 186, 255, 0.65),
      0 0 85px rgba(150, 115, 225, 0.35);
  }
}

.reson-name {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: #c1b1df;
}

.reson-instruction {
  margin-top: 16px;
  color: #81788f;
  font-size: 0.8rem;
  font-style: italic;
}

/* POEM */

.echo-poem {
  position: relative;
  z-index: 1;
  max-width: 570px;
  margin: 0 auto;
  padding: 35px 25px;

  background: rgba(12, 10, 23, 0.48);
  border: 1px solid rgba(170, 145, 211, 0.12);
  border-radius: 8px;

  box-shadow:
    0 0 50px rgba(55, 38, 89, 0.1);
}

.echo-poem p {
  margin: 0;
  text-align: left;
  line-height: 2;
  font-size: 1rem;
  color: #d7cde2;
}

/* FOOTER */

.echo-footer {
  position: relative;
  z-index: 1;
  margin-top: 70px;
}

.echo-footer a {
  color: #b8a3db;
  text-decoration: none;
  font-size: 0.9rem;
}

.echo-footer a:hover {
  color: #e2d4ff;
}

/* MOBILE */

@media (max-width: 600px) {
  .echo-world {
    padding: 45px 18px 65px;
  }

  .echo-sanctuary {
    margin: 60px auto 75px;
  }

  .echo-poem {
    padding: 28px 18px;
  }

  .echo-poem p {
    font-size: 0.94rem;
    line-height: 1.9;
  }
}

/* ACCESSIBILITY */

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

  .echo-ripple {
    animation-duration: 0.01ms;
  }
}

/* =====================================
   THE ENDLESS GOTHIC HALL
   ARCHITECTURAL DEPTH EXPERIMENT
===================================== */

/* Keep the existing chamber behind everything */
.echo-chamber {
  perspective: 900px;
}

/* Gothic arches fading into the distance */
.echo-arches {
  inset: 0;
  opacity: 0.65;

  background:
    /* Left-side arch columns */
    repeating-linear-gradient(
      90deg,
      transparent 0%,
      transparent 12%,
      rgba(145, 125, 190, 0.08) 12.3%,
      transparent 13%,
      transparent 24%
    ),

    /* Right-side atmospheric shadows */
    radial-gradient(
      ellipse at 50% 38%,
      transparent 15%,
      rgba(5, 4, 13, 0.55) 85%
    );

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.85),
      rgba(0, 0, 0, 0.6) 55%,
      transparent 95%
    );
}

/* Receding pointed arch silhouettes */
.echo-arches::before,
.echo-arches::after {
  content: "";
  position: absolute;

  top: 9%;
  left: 50%;

  width: 72%;
  height: 67%;

  transform: translateX(-50%);

  border-left: 2px solid rgba(165, 142, 207, 0.13);
  border-right: 2px solid rgba(165, 142, 207, 0.13);
  border-top: 2px solid rgba(165, 142, 207, 0.13);

  border-radius: 50% 50% 0 0;

  box-shadow:
    0 0 35px rgba(120, 90, 170, 0.04);

  pointer-events: none;
}

/* A smaller arch deeper in the hall */
.echo-arches::after {
  top: 17%;
  width: 42%;
  height: 48%;

  border-color: rgba(165, 142, 207, 0.09);

  filter: blur(1px);
}

/* Polished stone floor */
.echo-floor {
  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(150, 117, 210, 0.16),
      transparent 55%
    ),

    linear-gradient(
      to bottom,
      transparent,
      rgba(110, 85, 160, 0.035),
      transparent
    );
}

/* Slightly soften the arches on mobile */
@media (max-width: 600px) {
  .echo-arches::before {
    width: 105%;
    opacity: 0.7;
  }

  .echo-arches::after {
    width: 65%;
    opacity: 0.55;
  }
}
