/* ============================================================
   Shrine of Blekxas — overlay
   Loaded on index.html; appears over everything when /blek is active
   ============================================================ */

.shrine-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 167, 143, 0.12), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(179, 157, 219, 0.1), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(144, 202, 249, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0612 0%, #110a22 50%, #08050f 100%);
  color: var(--text-dark);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  -webkit-overflow-scrolling: touch;
}
.shrine-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Custom scrollbar — themed to peach/lavender */
.shrine-overlay {
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 167, 143, 0.5) rgba(15, 12, 26, 0.3);
}
.shrine-overlay::-webkit-scrollbar {
  width: 10px;
}
.shrine-overlay::-webkit-scrollbar-track {
  background: rgba(15, 12, 26, 0.4);
  border-left: 1px solid rgba(179, 157, 219, 0.08);
}
.shrine-overlay::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--peach), var(--lavender));
  border-radius: 999px;
  border: 2px solid rgba(15, 12, 26, 0.4);
  background-clip: padding-box;
}
.shrine-overlay::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--peach-hover), var(--lavender));
  background-clip: padding-box;
  border: 2px solid rgba(15, 12, 26, 0.4);
}

/* Floating sparkle particles */
.shrine-overlay .sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shrine-overlay .sparkle {
  position: absolute;
  color: rgba(232, 167, 143, 0.5);
  font-size: 14px;
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.shrine {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 96px 32px 72px;
}

/* Hero */
.shrine-hero {
  text-align: center;
  margin-bottom: 80px;
}
.shrine-label {
  font-family: serif;
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--peach);
  margin-bottom: 24px;
}
.shrine-label::before { content: '✦  '; }
.shrine-label::after  { content: '  ✦'; }

.shrine-title {
  font-family: serif;
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.92;
  margin: 0 0 20px;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 0%, var(--lavender) 35%, var(--peach) 70%, var(--sky) 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 8s ease-in-out infinite;
  text-shadow: 0 0 80px rgba(232, 167, 143, 0.3);
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.shrine-subtitle {
  font-family: serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(226, 212, 248, 0.7);
  letter-spacing: 1px;
}

/* Sacred portrait */
.sacred-portrait {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 56px auto 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(232, 167, 143, 0.4),
    0 0 160px rgba(179, 157, 219, 0.3),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}
.sacred-portrait::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: conic-gradient(from 0deg, var(--peach), var(--lavender), var(--sky), var(--peach));
  animation: halo-spin 12s linear infinite;
  z-index: -1;
  filter: blur(20px);
}
@keyframes halo-spin { to { transform: rotate(360deg); } }
.sacred-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) contrast(1.05);
}

/* Section divider */
.shrine-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto 80px;
  opacity: 0.35;
}
.shrine-divider::before,
.shrine-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lavender), transparent);
}
.shrine-divider-icon {
  font-size: 16px;
  color: var(--peach);
  letter-spacing: 8px;
}

/* Praise area */
.praise-area {
  text-align: center;
  margin: 96px auto;
}
.praise-btn {
  display: inline-block;
  padding: 24px 64px;
  font-family: serif;
  font-size: 22px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--peach), var(--lavender));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow:
    0 12px 32px rgba(232, 167, 143, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  user-select: none;
}
.praise-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 48px rgba(232, 167, 143, 0.55);
}
.praise-btn:active { transform: translateY(0) scale(0.98); }

.praise-counter {
  margin-top: 32px;
  font-size: 13px;
  color: rgba(179, 157, 219, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.praise-counter strong {
  color: var(--peach);
  font-size: 28px;
  font-family: serif;
  font-weight: normal;
  display: block;
  margin-top: 8px;
  letter-spacing: 0;
}
.praise-pop {
  position: fixed;
  pointer-events: none;
  font-family: serif;
  font-size: 24px;
  color: var(--peach);
  animation: praise-float 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 250;
  white-space: nowrap;
}
@keyframes praise-float {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; transform: translateY(-20px) scale(1); }
  100% { opacity: 0; transform: translateY(-160px) scale(1.2); }
}

/* The Devotion — poem */
.devotion {
  max-width: 700px;
  margin: 0 auto 96px;
  text-align: center;
  padding: 0 32px;
}
.devotion-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(179, 157, 219, 0.45);
  margin-bottom: 40px;
}
.devotion-line {
  font-family: serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(179, 157, 219, 0.08);
  transition: color 0.3s;
}
.devotion-line:hover { color: rgba(255, 255, 255, 0.95); }
.devotion-line:last-child {
  border-bottom: none;
  color: var(--peach);
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.75;
  padding-top: 20px;
}

/* The Ascension — sacred scripture */
.scripture {
  max-width: 760px;
  margin: 96px auto;
  padding: 0 16px;
}
.scripture-banner {
  font-family: serif;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.4;
  letter-spacing: 1px;
  text-align: center;
  color: white;
  margin-bottom: 12px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--peach), #fff, var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.scripture-banner-emoji {
  display: block;
  font-size: 26px;
  margin-top: 14px;
  letter-spacing: 12px;
  -webkit-text-fill-color: initial;
}

.scripture-glory {
  text-align: center;
  font-family: serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--peach);
  margin: 32px 0 48px;
}
.scripture-glory span { display: block; line-height: 1.7; }

.scripture p {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(226, 212, 248, 0.85);
  margin-bottom: 22px;
}
.scripture p strong { color: white; font-weight: 600; }
.scripture p em { font-style: italic; color: var(--lavender); }
.scripture-passage {
  position: relative;
  margin: 40px 0;
  padding: 40px 36px 32px;
  background:
    linear-gradient(135deg, rgba(232, 167, 143, 0.04), rgba(179, 157, 219, 0.05)),
    rgba(15, 12, 26, 0.4);
  border: 1px solid rgba(232, 167, 143, 0.15);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}
.scripture-passage::before,
.scripture-passage::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 167, 143, 0.4), transparent);
}
.scripture-passage::before { top: 14px; }
.scripture-passage::after  { bottom: 14px; }
.scripture-passage p { margin-bottom: 18px; }
.scripture-passage p:last-child { margin-bottom: 0; }
.scripture-passage-mark {
  position: absolute;
  top: -8px;
  left: 22px;
  font-family: serif;
  font-size: 56px;
  line-height: 1;
  color: var(--peach);
  opacity: 0.55;
  background: var(--midnight-mid);
  padding: 0 10px;
}

.scripture-quote {
  text-align: center;
  font-family: serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px) !important;
  color: var(--peach) !important;
  margin: 36px auto !important;
  letter-spacing: 1px;
}
.scripture-list { list-style: none; padding: 0; margin: 24px 0; }
.scripture-list li {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(226, 212, 248, 0.85);
  text-align: center;
}
.scripture-list li strong { color: var(--lavender); font-weight: 600; }
.scripture-chant {
  text-align: center;
  margin: 48px 0;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(232, 167, 143, 0.06), rgba(179, 157, 219, 0.06));
  border: 1px solid rgba(232, 167, 143, 0.12);
  border-radius: 16px;
}
.scripture-chant span {
  display: block;
  font-family: serif;
  font-size: clamp(18px, 2.2vw, 22px);
  letter-spacing: 2px;
  color: white;
  line-height: 1.85;
}
.scripture-chant span:first-child { color: var(--peach); }
.scripture-chant span:last-child { color: var(--lavender); }

/* Sacred relics — featured + thumbnail strip */
.relics { margin: 96px auto; }
.relics-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(179, 157, 219, 0.55);
  margin-bottom: 40px;
}

.relic-featured {
  position: relative;
  margin: 0 auto 28px;
  background: rgba(179, 157, 219, 0.05);
  border: 1px solid rgba(179, 157, 219, 0.22);
  border-radius: 18px;
  overflow: hidden;
  height: clamp(360px, 60vh, 580px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(232, 167, 143, 0.15), 0 0 0 1px rgba(232, 167, 143, 0.08) inset;
}
.relic-featured img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
  opacity: 1;
  transition: opacity 0.25s ease;
}
.relic-featured.swapping img { opacity: 0; }

.relics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 12px;
}
.relic-thumb {
  position: relative;
  background: rgba(179, 157, 219, 0.04);
  border: 1px solid rgba(179, 157, 219, 0.16);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.relic-thumb:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 167, 143, 0.4);
  box-shadow: 0 10px 24px rgba(232, 167, 143, 0.2);
}
.relic-thumb.active {
  border-color: var(--peach);
  box-shadow: 0 0 0 1px var(--peach), 0 8px 22px rgba(232, 167, 143, 0.35);
}
.relic-thumb.active::after {
  content: '✦';
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 11px;
  color: var(--peach);
  opacity: 0.9;
}
.relic-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}
.relic-thumb.sticker { background: rgba(232, 167, 143, 0.05); }
.relic-thumb.sticker img { max-width: 80%; max-height: 80%; }

/* Closing benediction */
.benediction {
  text-align: center;
  margin: 120px auto 40px;
  padding: 64px 32px;
}
.benediction-text {
  font-family: serif;
  font-size: clamp(36px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, var(--peach), var(--lavender), #fff);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease-in-out infinite;
}
.return-link {
  display: block;
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(179, 157, 219, 0.5);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}
.return-link:hover { color: var(--lavender); }

/* Shrine nav */
.shrine-nav {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  background: rgba(10, 6, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(179, 157, 219, 0.12);
  border-radius: 999px;
}
/* Anchor the title to the viewport center, regardless of side-element widths */
.shrine-nav .shrine-nav-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}
.shrine-nav-back {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(179, 157, 219, 0.65);
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.shrine-nav-back:hover { color: var(--lavender); }
.shrine-nav-title {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--peach), var(--lavender));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shrine-nav-star {
  font-size: 16px;
  color: var(--peach);
  opacity: 0.6;
}

/* When the shrine is open, hide the main nav so only the shrine nav shows */
body.shrine-open .nav { display: none; }
body.shrine-open { overflow: hidden; }

@media (max-width: 700px) {
  .shrine { padding: 80px 20px 60px; }
  .sacred-portrait { width: 240px; height: 240px; }
  .praise-btn { padding: 18px 40px; font-size: 16px; letter-spacing: 4px; }
  .scripture-banner-emoji { letter-spacing: 8px; }
  .relics-strip { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; }
  .relic-featured { height: clamp(280px, 50vh, 420px); padding: 16px; }
  .shrine-nav { left: 8px; right: 8px; padding: 9px 16px; }
  .shrine-nav-back { font-size: 10px; letter-spacing: 1.5px; }
  .shrine-nav-title { font-size: 11px; letter-spacing: 2px; }
  .scripture { padding: 0 6px; }
  .scripture p, .scripture-list li { font-size: 16px; line-height: 1.75; }
  .devotion { padding: 0 16px; }
}
@media (max-width: 420px) {
  .shrine { padding: 70px 14px 50px; }
  .sacred-portrait { width: 200px; height: 200px; margin-top: 40px; }
  .shrine-title { font-size: clamp(52px, 18vw, 80px); }
  .praise-btn { padding: 16px 28px; font-size: 14px; letter-spacing: 3px; }
  .praise-counter strong { font-size: 24px; }
  .relics-strip { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .relics { margin: 64px auto; }
  .relic-featured { height: 320px; padding: 12px; }
  .scripture-chant { padding: 28px 16px; }
  .scripture-chant span { font-size: 16px; letter-spacing: 1.2px; }
  .benediction { padding: 40px 16px; margin: 80px auto 24px; }
  .shrine-nav-title { display: none; }
  .shrine-nav { justify-content: space-between; }
}
