@import url('https://fonts.googleapis.com/css2?family=VT323&family=Cormorant+Garamond:ital,wght@1,300;1,500&display=swap');

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

body {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: #d8c8e8;
  background:
    radial-gradient(ellipse at 50% 0%, #1a0a26 0%, #08040d 60%, #000 100%);
  min-height: 100vh;
  overflow-x: hidden;
  cursor: default;
}

.scanlines {
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,200,240,0.03) 0px,
    rgba(255,200,240,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 2;
  mix-blend-mode: screen;
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}

.shrine {
  position: relative;
  z-index: 3;
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  text-align: center;
}

.invocation {
  margin-bottom: 56px;
}

.kicker {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: .3em;
  text-transform: lowercase;
  color: #8e6fa8;
  margin: 0 0 12px;
}

.title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 88px;
  margin: 0;
  color: #f5d4ee;
  letter-spacing: .02em;
  position: relative;
  display: inline-block;
  text-shadow: 0 0 30px rgba(245, 184, 230, 0.35);
}
.title::before,
.title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.title::before {
  color: #ff5fa2;
  transform: translate(-2px, 0);
  animation: glitch-a 4.2s steps(1) infinite;
  opacity: .55;
}
.title::after {
  color: #6fd1ff;
  transform: translate(2px, 0);
  animation: glitch-b 4.7s steps(1) infinite;
  opacity: .55;
}
@keyframes glitch-a {
  0%, 92%, 100% { transform: translate(-2px, 0); }
  93% { transform: translate(-4px, 1px); }
  95% { transform: translate(-1px, -1px); }
  97% { transform: translate(-3px, 0); }
}
@keyframes glitch-b {
  0%, 90%, 100% { transform: translate(2px, 0); }
  91% { transform: translate(4px, -1px); }
  94% { transform: translate(1px, 1px); }
  96% { transform: translate(3px, 0); }
}

.sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: #a890c4;
  margin: 14px 0 0;
  letter-spacing: .04em;
}

.altar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  margin: 0 auto 64px;
  padding: 24px 0;
}

.portrait {
  margin: 0;
  text-align: center;
}
.portrait svg {
  width: 200px;
  height: 240px;
  filter: drop-shadow(0 0 24px rgba(245, 184, 230, 0.25));
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(245, 184, 230, 0.25)); }
  50%      { filter: drop-shadow(0 0 38px rgba(245, 184, 230, 0.55)); }
}
.portrait figcaption {
  margin-top: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 14px;
  color: #8e6fa8;
  letter-spacing: .15em;
}

.candle {
  width: 24px;
  height: 100px;
  margin: 0 auto;
  position: relative;
}
.candle-l { justify-self: end; }
.candle-r { justify-self: start; }

.wax {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, #4a2a52 0%, #2a1530 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow:
    inset 0 6px 12px rgba(0,0,0,.5),
    inset 0 -2px 4px rgba(0,0,0,.6),
    0 0 12px rgba(255, 150, 220, 0.15);
}
.wax::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 8px;
  background: radial-gradient(ellipse at center, #5a3060 0%, #2a1530 80%);
  border-radius: 50%;
}
.flame {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 22px;
  background: radial-gradient(
    ellipse at 50% 80%,
    #fff5cc 0%,
    #ffb5e8 30%,
    #ff5fa2 60%,
    transparent 100%
  );
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  filter: blur(0.5px);
  box-shadow:
    0 0 12px rgba(255, 150, 220, 0.8),
    0 0 28px rgba(255, 80, 160, 0.5),
    0 0 60px rgba(255, 100, 180, 0.3);
  transform-origin: 50% 100%;
  animation: flicker 2.4s ease-in-out infinite;
}
.candle-r .flame { animation-delay: -.7s; animation-duration: 2.1s; }
@keyframes flicker {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-1deg); opacity: .95; }
  20%      { transform: translateX(-50%) scale(1.05, .95) rotate(2deg); opacity: 1; }
  40%      { transform: translateX(-52%) scale(.95, 1.08) rotate(-2deg); opacity: .9; }
  60%      { transform: translateX(-48%) scale(1.02, 1.02) rotate(1deg); opacity: 1; }
  80%      { transform: translateX(-50%) scale(.98, 1.04) rotate(-1deg); opacity: .92; }
}

.scroll {
  margin: 0 auto 56px;
  max-width: 480px;
  text-align: left;
  padding: 0 8px;
}

.scroll h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: #f5d4ee;
  margin: 0 0 18px;
  text-align: center;
  letter-spacing: .08em;
  position: relative;
}
.scroll h2::before,
.scroll h2::after {
  content: '·';
  color: #8e6fa8;
  margin: 0 14px;
  font-size: 22px;
  vertical-align: middle;
}

.scroll p {
  margin: 0 0 14px;
  line-height: 1.55;
  color: #c8b8d8;
}

.scroll ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.scroll ul li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(168, 144, 196, 0.2);
  color: #c8b8d8;
  text-align: center;
}
.scroll ul li:last-child { border-bottom: none; }
.scroll ul li::before {
  content: '✦ ';
  color: #ff5fa2;
  opacity: .6;
}

.prayer {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  text-align: center;
  font-size: 19px;
  color: #d8c8e8;
  margin: 0 0 10px;
}

.benediction {
  margin-top: 80px;
  text-align: center;
  color: #8e6fa8;
}
.benediction p {
  margin: 4px 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 18px;
}
.benediction .fine {
  font-family: 'VT323', monospace;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .15em;
  color: #6e5088;
  margin-top: 18px;
}

@media (max-width: 520px) {
  .title { font-size: 64px; }
  .altar { gap: 12px; }
  .portrait svg { width: 150px; height: 180px; }
  .shrine { padding: 60px 18px 80px; }
}
