  @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@380..900&family=Instrument+Serif&family=Libre+Baskerville:ital,wght@0,380..700;1,380..700&family=Luxurious+Roman&family=Uncial+Antiqua&family=Viaoda+Libre&display=swap');  
  
  :root {
    --bg-dark: #00090A;
    --bg-panel: #CEB380;
    --border-subtle: #80FF00;
    --border: #80FF00;
    --text-light: #00FFFF;
    --accent-glow: #59E5FF;
    --sidebar-width: 230px;         
    --gold: #156164;
    --accent-purple: #46315C;
    --border-color: #FFC300;
  }

  body {
    font-family: "Viaoda Libre", serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 20px;
  }

.corner-nav {
  position: fixed;
  top: 20px;
  bottom: 10px; /* Pulls the bottom up automatically */
  left: 20px;
  width: 250px;
  height: max-content;
  background-color: var(--bg-dark);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  z-index: 1000;
}

  .corner-nav h2 {
    color: #FFE300;
    font-size: 1.2rem;
    margin-top: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    font-family: 'Uncial Antiqua', serif;
  }

  .corner-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .corner-nav li {
    margin-bottom: 15px;
  }

  .corner-nav a {
    color: #00ECFF;
    text-decoration: none;
    font-weight: normal;
    transition: color 0.3s;
  }

  .corner-nav a:hover {
    color: #fff;
  }

  /* MAIN CONTENT AREA */
  .main-content {
    margin-left: 290px;
    padding: 40px;
    max-width: 850px;
    color: #0EEAFF;
  }

  .main-content h1 {
    color: #FFE300;
    font-size: 2.3rem;
    margin-top: 0;
    font-family: 'Uncial Antiqua', serif;
  }

  .section-header {
    color: #FFE300;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    margin-top: 50px;
    font-family: 'Uncial Antiqua', serif;
  }

  .footer-spacer {
    height: 380px;
    margin-top: 50px;
    border-top: 1px solid var(--accent-purple);
    padding-top: 20px;
    color: #a0aec0;
    font-style: italic;
  }

  html {
    scroll-behavior: smooth;
  }

  .fixed-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Viaoda Libre', serif;
  }

  .moon {
    position: fixed;
    top: 30px;
    right: 40px;
    font-size: 2em;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px #8bc34a);
    animation: float 4s ease-in-out infinite;
    z-index: 3;
  }

  @keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
  }

  .lore-image {
    width: 100%;
    max-width: 580px;
    border-radius: 14px;
    margin: 35px auto;
    display: block;
    box-shadow: 0 0 30px rgba(139, 195, 74, 0.15);
    border: 1px solid rgba(216, 184, 106, 0.3);
  }

  .caption {
    font-size: 0.9em;
    color: #00FFEE;
    margin-top: 8px;
    font-style: italic;
    text-align: center;
  }

  .lore-card {
    background: #001319;
    border: 1px solid rgba(216, 184, 106, 0.2);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    text-align: left;
    margin-bottom: 25px; 
    cursor: pointer;
    width: 635px;
    padding-right:5px;
    margin-right: 15px;
  }

  .lore-card.glowing {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(218, 184, 106, 0.4), inset 0 0 15px rgba(139, 195, 74, 0.15);
    transform: scale(1.02);
    transition: all 0.4s ease;
  }

  .glow-all {
    text-shadow: 0 0 4px rgba(210,180,255,0.55), 0 0 10px rgba(180,120,255,0.35);
    animation: glowPulse 6s ease-in-out infinite;
  }

  @keyframes glowPulse {
    0% { text-shadow: 0 0 4px rgba(210,180,255,0.4); }
    50% { text-shadow: 0 0 10px rgba(210,180,255,0.8); }
    100% { text-shadow: 0 0 4px rgba(210,180,255,0.4); }
  }

  #starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  .custom-dropdown-2 summary {
    font-family: 'Viaoda Libre', serif; 
    font-size: 1.3rem;
    text-shadow: 0 0 5px #5F6C7E;
    color: #C1A380;
    text-align: left;
    cursor: pointer;
  }

  .custom-dropdown-2 p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #382856;
    color: #CDAC2F;
    text-align: left;
  }

  .section-divider {
    text-align: center;
    margin: 10px auto;
    color: #00FFEE;
    opacity: 1;
    letter-spacing: 8px;
    font-size: 1.2rem;
    text-shadow: 0 0 10px #00626C;
    filter: drop-shadow(0 0 10px #38A9C5);
  }

  .prose-scroll {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 12px;
    border-left: 2px dashed var(--border);
    padding-left: 15px;
    font-size: 0.95em;
    color: #bfaecf;
    line-height: 1.7;
  }

  .prose-scroll::-webkit-scrollbar { width: 6px; }
  .prose-scroll::-webkit-scrollbar-track { background: #07040a; }
  .prose-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

  .dictionary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }