@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&family=Metal+Mania&family=UnifrakturMaguntia&family=Nunito:wght@400;600;700&display=swap');

:root {
  --bg-dark: #050505;
  --bg-paper: #0c0c0c;
  --bg-black: #000000;
  --text-light: #e0e0e0;
  --text-muted: #888888;
  --text-dark-muted: #555555;
  --accent-blood: #8b0000;
  --accent-gold: #d4af37;
  --border-translucent: rgba(212, 175, 55, 0.15);
  --shadow-book: 0 30px 60px rgba(0, 0, 0, 0.9);
  --rounded-sm: 4px;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-gothic: 'Cinzel', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: 'EB Garamond', serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  
  background-image: radial-gradient(circle at center, rgba(139, 0, 0, 0.03) 0%, rgba(3, 3, 3, 0.98) 80%),
                    url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
}



.hud-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.hud-header {
  height: 64px;
  flex-shrink: 0;
  background: var(--bg-black);
  border-bottom: 1px solid var(--border-translucent);
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hud-main {
  flex: 1;
  display: flex;
  justify-content: space-between; 
  width: 100%;
  max-width: 100%; 
  margin: 0;
  padding: 20px 24px;
  gap: 24px;
  height: calc(100vh - 64px - 84px);
  overflow: hidden;
}


.hud-sidebar-left {
  width: 280px;
  flex-shrink: 0;
  background: rgba(6, 6, 6, 0.98);
  border: 1px solid var(--border-translucent);
  border-radius: var(--rounded-sm);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none; 
}
.hud-sidebar-left::-webkit-scrollbar {
  display: none; 
}


.hud-sidebar-right {
  width: 580px;
  flex-shrink: 0;
  background: rgba(6, 6, 6, 0.98);
  border: 1px solid var(--border-translucent);
  border-radius: var(--rounded-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none; 
}
.hud-sidebar-right::-webkit-scrollbar {
  display: none; 
}

.sidebar-title {
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 12px;
}

.playlist-frame {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none; 
  padding-right: 0;
}

.playlist-frame::-webkit-scrollbar {
  display: none; 
}

.playlist-list {
  list-style: none;
}

.playlist-item {
  display: flex;
  align-items: center;
  padding: 14px;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.05);
  border-radius: var(--rounded-sm);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
}

.playlist-item:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.playlist-item.active {
  background: rgba(139, 0, 0, 0.12);
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
}

.playlist-item.dragging {
  opacity: 0.5;
  background: var(--accent-blood);
  cursor: grabbing;
}

.track-index {
  font-family: 'Cinzel', serif;
  color: var(--accent-gold);
  width: 32px;
  font-size: 0.85rem;
}

.track-info {
  flex: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.track-name {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--text-light);
  transition: color 0.3s;
}

.playlist-item.active .track-name {
  color: var(--accent-gold);
}

.track-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.track-play-icon {
  color: var(--accent-gold);
  font-size: 0.75rem;
  opacity: 0.5;
  transition: opacity 0.3s;
  pointer-events: none; 
  flex-shrink: 0;
  width: 30px;
  text-align: center;
}

.playlist-item:hover .track-play-icon,
.playlist-item.active .track-play-icon {
  opacity: 1;
}

.playlist-hint {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
  font-size: 0.72rem;
  color: var(--text-dark-muted);
  line-height: 1.6;
}



.hud-content {
  flex: 1; 
  max-width: 900px; 
  padding: 0 40px;
  height: 100%;
  overflow: hidden;
}

.chronicle-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s var(--ease-out-quart) forwards;
}

.chronicle-header-fixed {
  flex-shrink: 0;
  width: 100%;
  padding-top: 10px;
  background: transparent;
  z-index: 10;
}

.chronicle-scrollable-body {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  scrollbar-width: none; 
  padding: 10px 0;
}

.chronicle-scrollable-body::-webkit-scrollbar {
  display: none; 
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.chronicle-intro {
  text-align: center;
  padding: 30px 40px;
}

.chronicle-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chronicle-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 20px;
  line-height: 1.15;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 12px;
  text-align: center;
  width: 100%;
}


.chronicle-lyrics {
  font-family: 'EB Garamond', serif;
  font-size: 1.1rem;
  line-height: 2.0; 
  color: var(--text-light);
  white-space: normal;
  word-wrap: break-word;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.95);
  padding: 10px 10px 40px; 
}


.chronicle-sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  animation: fadeIn 0.6s var(--ease-out-quart) forwards;
}

.chronicle-art-frame {
  max-width: 220px; 
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border-translucent);
  padding: 8px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: var(--rounded-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.chronicle-art {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: sepia(0.12) contrast(1.08);
  display: block;
}

.chronicle-meta {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  text-align: center;
  margin-bottom: 12px;
}

.chronicle-lore {
  font-size: 0.95rem; 
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  border-right: 2px solid var(--accent-blood);
  padding-right: 12px;
  text-align: right;
}


.chronicle-lyrics-intro {
  text-align: left; 
  color: var(--text-light);
  font-weight: 300;
}


.chronicle-lore-sidebar {
  text-align: right;
  border-right: 2px solid var(--accent-blood);
  padding-right: 15px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.chronicle-sidebar-footer {
  text-align: center;
  margin-top: 15px;
}

.ds-seo-link.seo-link.sidebar-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}


.chronicle-footer {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
}

.ds-seo-link.seo-link {
  display: inline-block;
  padding: 12px 30px;
  font-family: 'Cinzel', serif;
  font-size: 0.82rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--accent-gold);
  background: rgba(139, 0, 0, 0.08);
  border: 1px solid var(--accent-gold);
  border-radius: var(--rounded-sm);
  box-shadow: 0 6px 15px rgba(139, 0, 0, 0.15);
  transition: all 0.4s var(--ease-out-expo);
}

.ds-seo-link.seo-link:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}



.hud-player {
  height: 110px;
  flex-shrink: 0;
  background: var(--bg-black);
  border-top: 1px solid var(--border-translucent);
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.9);
}

.player-track-info {
  width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-title {
  font-size: 0.95rem;
  color: var(--accent-gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.player-controls {
  flex: 1;
  max-width: 800px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-play-btn {
  background: var(--accent-gold);
  color: var(--bg-black);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all 0.3s var(--ease-out-quart);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.main-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
}

.track-nav-btn {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-quart);
  flex-shrink: 0;
}

.track-nav-btn:hover {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--accent-gold);
}

.track-nav-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s var(--ease-out-quart);
}

#prevTrackBtn:hover i {
  transform: translateX(-2px);
}
#nextTrackBtn:hover i {
  transform: translateX(2px);
}

.progress-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.relic-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: #222;
  border-radius: 2px;
  outline: none;
}

.relic-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 5 L40 12 L40 18 L60 18 L60 12 Z' fill='%23d4af37' /%3E%3Cpath d='M5 33 L95 33 L95 40 L50 48 L5 40 Z' fill='%23d4af37' /%3E%3Cpath d='M32 48 L50 95 L50 48 Z' fill='%23666' /%3E%3Cpath d='M50 48 L50 95 L68 48 Z' fill='%23eee' /%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
  border: none;
  transition: transform 0.2s;
  margin-top: -10px;
}

.relic-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.time-display {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  font-family: 'Cinzel', serif;
}



.gothic-font {
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  text-shadow: 1px 1px 0 #000, 0 0 10px rgba(212, 175, 55, 0.2);
}


.mobile-nav-buttons {
  display: none;
}

.page-title-left {
  font-size: 2.2rem;
  color: var(--accent-gold);
  margin-bottom: 20px;
}

.page-welcome-text {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.page-cover-img {
  border: 1px solid var(--border-translucent);
  padding: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--rounded-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.ds-seo-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  transition: text-shadow 0.3s;
}

.ds-seo-link:hover {
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}

.relic-loading {
  position: relative;
  pointer-events: none;
  animation: goldPulse 1.5s infinite alternate ease-in-out;
}

@keyframes goldPulse {
  0% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.4);
    opacity: 0.7;
  }
  100% {
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    border-color: var(--accent-gold);
    opacity: 1;
  }
}


a:focus-visible,
button:focus-visible,
input[type="range"]:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}


.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-links a {
  color: white;
  font-size: 1.1rem;
  transition: all 0.3s var(--ease-out-quart);
}

.social-links a.spotify { color: #1DB954; }
.social-links a.tiktok { color: #fff; text-shadow: 1px 1px #00f2ea, -1px -1px #ff0050; }
.social-links a.youtube { color: #FF0000; }

.social-links a:hover {
  transform: scale(1.15);
  filter: brightness(1.2) drop-shadow(0 0 8px currentColor);
}


.static-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
}



@media (max-width: 1380px) {
  .hud-sidebar-left {
    width: 240px;
    padding: 15px;
  }

  .hud-sidebar-right {
    width: 400px;
    padding: 20px;
  }

  .hud-content {
    width: 480px;
  }
  
  .hud-main {
    gap: 15px;
    padding: 20px 10px;
  }
}

@media (max-width: 1150px) {
  .hud-sidebar-left {
    width: 220px;
  }

  .hud-sidebar-right {
    width: 360px;
  }

  .hud-content {
    width: 440px;
  }
}

@media (max-width: 1040px) {
  
  html, body {
    height: auto;
    overflow: visible;
    overflow-x: hidden;
  }
  
  .hud-container {
    height: auto;
    overflow: visible;
  }

  .hud-main {
    flex-direction: column; 
    padding: 20px 0;
    gap: 40px;
    height: auto;
    overflow: visible; 
    padding-bottom: 180px; 
  }

  .hud-sidebar-left,
  .hud-sidebar-right,
  .hud-content {
    width: 100%;
    height: auto;
    position: static;
    max-height: none;
    box-shadow: none;
    padding: 10px 5px;
    border-left: none;
    border-right: none;
    background: transparent;
    overflow: visible;
  }

  
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    order: 2; 
    margin-top: 10px;
    margin-bottom: 30px;
    width: 100%;
  }

  .mobile-nav-btn {
    width: 100%;
    max-width: 400px;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--accent-blood);
    color: var(--text-light);
    font-family: 'Cinzel', serif;
    padding: 12px;
    border-radius: var(--rounded-sm);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .mobile-nav-btn.active-tab {
    background: var(--accent-blood);
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 0, 0, 0.6);
  }

  
  .hud-sidebar-right {
    order: 3; 
  }
  
  
  .hud-sidebar-left {
    order: 0; 
    display: none; 
  }
  .hud-sidebar-left.mobile-visible {
    display: flex;
  }

  
  .hud-content {
    order: 1; 
  }
  
  .altar-mailbox {
    order: 99; 
  }

  .chronicle-view {
    height: auto;
    overflow: visible;
  }

  .chronicle-scrollable-body {
    overflow: visible;
  }

  
  .chronicle-lore,
  .chronicle-lore-sidebar {
    text-align: center;
    border: 1px solid rgba(139, 0, 0, 0.3);
    background: rgba(10, 10, 10, 0.8);
    border-radius: 8px;
    padding: 20px 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 20px 5px;
    color: var(--text-muted);
    font-style: italic;
  }
}

@media (max-width: 768px) {
  .hud-player {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.98);
    border-top: 2px solid var(--accent-blood);
    box-shadow: 0 -10px 20px rgba(0,0,0,0.8);
  }

  .player-track-info {
    width: 100%;
    text-align: center;
  }

  .player-controls {
    width: 100%;
  }

  .chronicle-lyrics, .altar-lyrics {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.15rem;
    line-height: 1.6;
    text-align: center;
    letter-spacing: normal;
    padding: 0;
    text-shadow: none;
  }
}

@media (max-width: 480px) {
  .hud-header {
    padding: 0 15px;
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    gap: 5px;
  }

  .logo.gothic-font {
    font-size: 1.1rem;
  }

  .header-tagline {
    font-size: 0.7rem;
  }

  .sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .playlist-item {
    padding: 10px;
  }

  .track-name {
    font-size: 0.85rem;
  }
}



.altar-body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  height: 100vh; 
  overflow: hidden; 
  padding-top: 100px;
  padding-bottom: 24px;
  padding-left: 30px;
  padding-right: 30px;
  font-family: 'EB Garamond', serif;
  background-image: radial-gradient(circle at center, rgba(139, 0, 0, 0.05) 0%, rgba(3, 3, 3, 0.98) 80%),
                    url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
}


.altar-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid var(--border-translucent);
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(12px);
}

.altar-back-link {
  display: inline-block;
  color: var(--accent-gold);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  border: 1px solid var(--accent-gold);
  padding: 8px 24px;
  background: rgba(139, 0, 0, 0.08);
  border-radius: var(--rounded-sm);
  transition: all 0.4s var(--ease-out-expo);
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.altar-back-link:hover {
  background: rgba(212, 175, 55, 0.2);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  transform: translateY(-1px);
}


.altar-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr; 
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
  height: calc(100vh - 145px); 
  overflow: hidden;
}

.altar-column-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow: hidden; 
}

.altar-column-right {
  background: rgba(8, 8, 8, 0.85);
  border: 1px solid var(--border-translucent);
  padding: 30px;
  border-radius: var(--rounded-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  height: 100%;
  overflow: hidden; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.altar-title {
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  flex-shrink: 0;
}

.altar-subtitle {
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
  letter-spacing: 3px;
  font-size: 0.82rem;
  margin-bottom: 15px;
  opacity: 0.8;
  text-transform: uppercase;
  text-align: center;
  flex-shrink: 0;
}

.altar-seo-text {
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.altar-seo-text h2 {
  font-family: 'Cinzel', serif;
  color: var(--accent-gold);
  font-size: 1.15rem;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}


.altar-lyrics {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text-light);
  white-space: normal;
  word-wrap: break-word;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  max-width: 480px;
  padding: 24px 30px;
  background: rgba(5, 5, 5, 0.7);
  border: 1px solid var(--border-translucent);
  border-radius: var(--rounded-sm);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.95);
  flex: 1; 
  overflow-y: auto; 
  scrollbar-width: none; 
}

.altar-lyrics::-webkit-scrollbar {
  display: none; 
}

.altar-interlinking {
  margin-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 25px;
}

.altar-interlinking h3 {
  font-family: 'Cinzel', serif;
  color: var(--accent-gold);
  font-size: 1.1rem;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.altar-song-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.altar-song-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.3s;
  font-family: 'Cinzel', serif;
  padding: 4px 10px;
  border: 1px solid transparent;
}

.altar-song-list a:hover {
  color: var(--accent-gold);
  border-color: rgba(212, 175, 55, 0.15);
  background: rgba(212, 175, 55, 0.03);
}


@media (max-width: 900px) {
  .altar-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .altar-column-left {
    position: static;
    align-self: center;
  }

  .altar-navbar {
    padding: 0 20px;
    justify-content: center;
  }
}



.chronicle-sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.like-button-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(139, 0, 0, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--rounded-sm);
  padding: 10px 15px;
  transition: all 0.3s var(--ease-out-quart);
}

.like-button-container:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.03);
}

.like-heart-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.like-heart-btn.liked {
  color: #ff3b30;
  animation: heartbeat 0.6s var(--ease-out-quart) 1;
}

.like-heart-btn:hover {
  transform: scale(1.2);
}

.like-count {
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: bold;
  letter-spacing: 1px;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


.altar-mailbox {
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border-translucent);
  border-radius: var(--rounded-sm);
  padding: 20px;
  margin-top: 25px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.95);
}

.mailbox-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  padding-bottom: 8px;
}

.mailbox-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.mailbox-input, .mailbox-textarea {
  background: rgba(5, 5, 5, 0.95);
  border: 1px solid var(--border-translucent);
  color: var(--text-light);
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--rounded-sm);
  width: 100%;
  transition: all 0.3s;
}

.mailbox-textarea {
  min-height: 70px;
  resize: vertical;
}

.mailbox-input:focus, .mailbox-textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.2);
}

.mailbox-submit {
  width: 100%;
  background: rgba(8, 8, 8, 0.75);
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--rounded-sm);
  transition: all 0.4s var(--ease-out-expo);
  text-transform: uppercase;
}

.mailbox-submit:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.8);
}

.mailbox-status {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  min-height: 18px;
  color: var(--accent-gold);
}



.chronicle-lyrics .prologue-title {
  font-family: var(--font-gothic);
  font-size: 2.5rem;
  color: var(--text-highlight);
  text-align: center;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.chronicle-lyrics .prologue-subtitle {
  font-family: var(--font-gothic);
  font-size: 1.5rem;
  color: var(--accent-red);
  text-align: center;
  margin-bottom: 15px;
}

.chronicle-lyrics .prologue-chapter {
  font-family: var(--font-gothic);
  font-size: 1.8rem;
  color: var(--accent-red);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-translucent);
  padding-bottom: 10px;
}



.chronicle-lyrics .prologue-poem {
  font-style: italic;
  font-family: 'EB Garamond', serif;
  color: #ccc;
  padding-left: 20px;
  margin: 25px auto;
  line-height: 2;
  font-size: 1.05rem;
  background: rgba(138, 3, 3, 0.05);
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 0 8px 8px 0;
}


.prologue-title {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: #d4af37;
  text-align: center;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.prologue-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #8b0000;
  text-align: center;
  margin-bottom: 15px;
}

.prologue-chapter {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #8b0000;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  padding-bottom: 10px;
}



.prologue-poem {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ccc;
  padding-left: 20px;
  margin: 20px auto;
  background: rgba(138, 3, 3, 0.05);
  padding-top: 15px;
  padding-bottom: 15px;
  border-radius: 0 8px 8px 0;
  white-space: normal;
}



.prologue-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 50px 60px;
  background: rgba(8, 8, 8, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), inset 0 0 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  white-space: normal;
}

@media (max-width: 768px) {
  .prologue-container {
    padding: 30px 20px;
    background: transparent;
    border: none;
    box-shadow: none;
  }
}

.prologue-title {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  color: #d4af37;
  text-align: center;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.prologue-subtitle {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #8b0000;
  text-align: center;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.drop-cap {
  font-family: inherit;
  font-size: 1.25em;
  font-weight: bold;
  color: #d4af37;
}

.prologue-text {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-indent: 0;
  color: #e0e0e0;
  text-align: left;
  white-space: normal;
}

.prologue-text:first-of-type {
  text-indent: 0;
}

.prologue-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px 0 40px 0;
  opacity: 0.8;
}

.prologue-divider::before, .prologue-divider::after {
  content: '';
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,0,0,0.8), transparent);
  flex: 1;
}

.prologue-divider i {
  color: #8b0000;
  margin: 0 20px;
  font-size: 1.2rem;
}

.prologue-chapter {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: #d4af37;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.prologue-poem {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #b0b0b0;
  text-align: center;
  margin: 40px auto;
  padding: 30px;
  background: radial-gradient(circle, rgba(139,0,0,0.08) 0%, transparent 80%);
  border-top: 1px solid rgba(139,0,0,0.3);
  border-bottom: 1px solid rgba(139,0,0,0.3);
  width: 85%;
}

@media (max-width: 768px) {
  .header-tagline { display: none; }
  .hud-header { padding: 0 15px; }
  .logo { white-space: nowrap; font-size: 1.15rem; }
  
  .prologue-title { font-size: 2rem; }
  .prologue-chapter { font-size: 1.5rem; }
  .prologue-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  .prologue-poem { width: 100%; }
}
