.entry-actions .entry-ritual-row[hidden]{display:none}
:is(#prayer-lamps,#collection-prayer-lamps){position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,1.4fr) repeat(3,minmax(0,1fr));align-items:end;width:min(84vw,405px);max-width:100%;margin:0 auto;padding:0 3px 6px}
:is(#prayer-lamps,#collection-prayer-lamps)::after{content:"";position:absolute;bottom:0;left:1%;right:1%;height:6px;border-radius:50%;background:linear-gradient(#281612,#997748 25%,#573525 50%,#291912);pointer-events:none}
:is(#prayer-lamps,#collection-prayer-lamps) button{position:relative;height:clamp(68px,10vh,92px);width:100%;margin:0;padding:0;border:0;background:transparent;box-shadow:none;isolation:isolate;--bowl-width:88%}
:is(#prayer-lamps,#collection-prayer-lamps) button.central{--bowl-width:94%}
:is(#prayer-lamps,#collection-prayer-lamps) button:disabled{opacity:1}
:is(#prayer-lamps,#collection-prayer-lamps) button:focus-visible{outline:1px solid #ebc687;border-radius:6px}
:is(#prayer-lamps,#collection-prayer-lamps) .lamp-head { position:absolute; left:0; right:0; margin:auto; width:var(--bowl-width); bottom:0; pointer-events:none }
:is(#prayer-lamps,#collection-prayer-lamps) .bowl { display:block; width:100%; height:auto }
:is(#prayer-lamps,#collection-prayer-lamps) .next{background:radial-gradient(ellipse at 50% 69%,#edbe6833,transparent 60%)}
:is(#prayer-lamps,#collection-prayer-lamps) .flame{display:none;position:absolute;z-index:1;left:50%;bottom:87%;width:7px;height:19px;border-radius:80% 15% 65% 40%;transform-origin:50% 100%;background:radial-gradient(ellipse at 48% 77%,#fffce5 10%,#f9e1a3 33%,#e9ad46 58%,#bd772b 82%,transparent 98%);box-shadow:0 0 8px #eea94199;transform:translateX(-50%);animation:lamp-sway var(--beat) ease-in-out var(--phase) infinite alternate,lamp-breathe var(--breath) ease-in-out var(--phase) infinite alternate}
:is(#prayer-lamps,#collection-prayer-lamps) .lit .flame{display:block}
:is(#prayer-lamps,#collection-prayer-lamps) .central .flame{width:10px;height:var(--flame-height);box-shadow:0 0 var(--glow) #ffbd57ba}
@keyframes lamp-sway{0%{transform:translateX(-50%) skewX(-8deg) scaleY(.92)}39%{transform:translateX(-50%) skewX(3deg) scaleY(1.04)}67%{transform:translateX(-50%) skewX(-2deg) scaleY(.96)}100%{transform:translateX(-50%) skewX(7deg) scaleY(1.07)}}
@keyframes lamp-breathe{from{opacity:.78}to{opacity:1}}
#lamp-arrival[open]{position:fixed;inset:0;display:grid;place-items:center;margin:0;width:100%;height:100%;max-width:none;max-height:none;box-sizing:border-box;border:0;background:radial-gradient(ellipse at 50% 35%,#8a542bda,#29150ff2 76%);color:#fbe0a9;overflow:hidden}
#lamp-arrival::backdrop{background:#301c1399}
#lamp-arrival canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
#lamp-arrival .lamp-arrival-panel{position:relative;width:min(78vw,45vh,380px);width:min(78vw,45dvh,380px)}
#lamp-arrival-close{position:absolute;z-index:2;right:4px;top:4px;width:44px;height:44px;display:grid;place-items:center;margin:0;padding:0;border:2px solid #c59d5b;border-radius:50%;background:#4c2d1b;color:#ffe4ac;box-shadow:0 2px 5px #28140d80;font:600 27px/1 Georgia,serif;cursor:pointer}
#lamp-arrival-close:focus-visible{outline:2px solid #fff1c6;outline-offset:2px}
#lamp-arrival figure{position:relative;width:100%;margin:0;text-align:center;opacity:0}
#lamp-arrival img{display:block;width:100%;height:auto;border-radius:4%;box-shadow:0 0 24px #f2bb6399}
#lamp-arrival figcaption{margin-top:10px;font:600 1.2rem Georgia,serif}
#lamp-arrival .burst-light{position:absolute;width:min(80vw,70vh);aspect-ratio:1;border-radius:50%;background:radial-gradient(#fff0a9,#f6b43a77 30%,transparent 68%);pointer-events:none}
@media(prefers-reduced-motion:reduce){:is(#prayer-lamps,#collection-prayer-lamps) .flame{animation:none}}

#collection-prayer-lamps { margin-block:8px 16px }
#collection-prayer-lamps button:disabled { opacity:1 }
@media (prefers-reduced-motion:no-preference) {
  #collection-dialog #collection-prayer-lamps .lit .flame {
    animation:lamp-sway var(--beat) ease-in-out var(--phase) infinite alternate,lamp-breathe var(--breath) ease-in-out var(--phase) infinite alternate !important;
  }
}

/* Decorative manuscript illustration beneath the seven interactive lamps. */
#prayer-lamps:not(.seventh-ready)::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-6px 0 6px;
  background:url('/assets/antique/namaste-lotus.webp') center bottom / contain no-repeat;
  opacity:.65;
  pointer-events:none;
}

/* Crop the center 156 of 810 source pixels to show the hands without the flowers. */
:is(#prayer-lamps,#collection-prayer-lamps).seventh-ready .next .lamp-head::after { content:none }
:is(#prayer-lamps,#collection-prayer-lamps).seventh-ready .next .lamp-head::before {
  content:"";
  position:absolute;
  z-index:3;
  pointer-events:auto;
  left:50%;
  bottom:8%;
  width:90%;
  aspect-ratio:156 / 270;
  transform:translateX(-50%);
  background:url('/assets/antique/namaste-lotus.webp') center / auto 100% no-repeat;
  filter:brightness(1.22) drop-shadow(0 0 2px #ffe29d);
}
@media (prefers-reduced-motion:no-preference) {
  #prayer-lamps.seventh-ready .next .lamp-head::before,
  #collection-dialog #collection-prayer-lamps.seventh-ready .next .lamp-head::before {
    animation:prayer-hands-breathe 3.6s ease-in-out infinite alternate !important;
  }
}
@keyframes prayer-hands-breathe {
  from { opacity:.58; filter:brightness(.94) drop-shadow(0 0 1px #e0aa53) }
  to { opacity:1; filter:brightness(1.35) drop-shadow(0 0 4px #ffe29d) }
}

/* The match follows the lamp selected by the daily prayer state. */
:is(#prayer-lamps, #collection-prayer-lamps) .next .lamp-head::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: calc(100% + 3px);
  width: 9px;
  height: 28px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 40% 38%, #ffb582 0%, #c04b30 40%, #792b20 75%, transparent 80%) center bottom / 9px 10px no-repeat,
    linear-gradient(90deg, #91552e, #ffe3aa 45%, #d89a59) center top / 4px 23px no-repeat;
  filter: drop-shadow(0 1px 1px #492917);
  transform-origin: 50% 90%;
  transform: translateX(-50%) rotate(32deg);
}
:is(#prayer-lamps, #collection-prayer-lamps) .central.next .lamp-head::after {
  left: 63%;
}
@keyframes prayer-match-float {
  to { transform: translate(-50%, -5px) rotate(32deg); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(#prayer-lamps, #collection-prayer-lamps) .next .lamp-head::after {
    animation: prayer-match-float 1s ease-in-out infinite alternate;
  }
}

#lamp-signature{width:min(86vw,360px);box-sizing:border-box;padding:22px;color:#482a0e;border:3px double #94652b;border-radius:12px;background:linear-gradient(130deg,#fff0c1,#e4bf78);box-shadow:0 8px 40px #28180c88}
#lamp-signature::backdrop{background:#29180dc9}
#lamp-signature form{display:grid;gap:12px}
#lamp-signature h2{margin:0;font-size:1.35rem}
#lamp-signature input{min-width:0;padding:10px;font:inherit;font-size:16px;color:#402609;background:#fff5d9;border:1px solid #90692c;border-radius:5px}
#lamp-signature button{min-height:42px}

.seventh-arrival-art{position:relative}
.seventh-light{display:none;position:relative;pointer-events:none}
#lamp-arrival[open] .seventh-light{display:block;position:absolute;inset:0}
.seventh-light i{position:absolute;display:block}
.seventh-light .wick-ground{left:42.4074%;top:23.4568%;width:15.1852%;height:14.1975%;background:var(--seventh-wick-ground) center/100% 100%}
.seventh-light .lamp-aura{left:22%;top:12.44%;width:56%;height:39.11%;border-radius:50%;background:radial-gradient(ellipse,#fff7bda8,#ffe59559 37%,#ffd87720 56%,transparent 71%);animation:seventh-breathe 4.8s ease-in-out infinite alternate}
.seventh-light .living-flame{left:47.5%;top:26.02%;width:5%;height:9.08%;border-radius:85% 14% 58% 47%;background:radial-gradient(ellipse at 48% 80%,#fffef1 12%,#fff1a4 49%,#ffcd60 74%,#d58727);box-shadow:0 0 8px #ffce6990;transform-origin:50% 98%;animation:seventh-sway 1.85s ease-in-out infinite alternate}
@keyframes seventh-sway{0%{transform:skewX(10deg) scaleY(.94)}42%{transform:skewX(-6deg) scaleY(1.04)}69%{transform:skewX(2deg) scaleY(.98)}100%{transform:skewX(-11deg) scaleY(1.05)}}
@keyframes seventh-breathe{from{opacity:.32;transform:scale(.81)}to{opacity:.96;transform:scale(1.13)}}
@media(prefers-reduced-motion:reduce){#lamp-arrival[open] .seventh-light{display:none}}
