/* ==========================================
   🪐 GLOBAL CONFIGURATION & RESET
   ========================================== */

.window {
  border: 2px solid white;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* 🛠️ THE MAGIC AXE: Forces borders inside width math */
}

/* Global main stays neutral so home and other hubs sit properly */
main {
  margin-left: 240px; 
  width: calc(100% - 240px); 
  min-width: 500px; 
  box-sizing: border-box;
  padding: 20px 30px;
  flex: 1;
  position: relative;
  z-index: 5;
  margin-top: 0 !important;
}


/* ==========================================
   🖼️ HEADER & RESPONSIVE TITLE COLLISION FIX
   ========================================== */

header {
  background: transparent;
  color: white;
  padding: 0;
  display: block;        
  position: relative;        
  margin-left: 240px;        
  width: calc(100% - 240px); 
  z-index: 10;
  margin-top: 25px !important;     
  margin-bottom: -15px !important;
}

header .title-row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.title-row {
  width: 100%;
  background: transparent;
  padding: 30px 40px 0 40px;
  display: flex;
  justify-content: center;   
  align-items: center;
  margin-top: 30px;
  position: relative;
  box-sizing: border-box;
  line-height: 0;
}

.title-row a {
  text-decoration: none;
}

.title-row img.dr-title {
  display: inline-block !important; 
  margin: 0 auto !important;        
}

.title {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* 🎯 ALL-HUB BANNER IMAGE CENTERING FIX */
.title-row .title {
  display: flex !important;
  width: 100% !important;
  text-align: center !important;
}

.title-row .title a {
  display: inline-block !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.title-row h1.title img {
  display: block !important;
  margin: 0 auto !important;
}

.medicalcannabis-title,
.entertainment-title,
.dr-title {
  width: clamp(220px, 35vw, 500px) !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 auto;
  padding: 0;
  display: block;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* 🏠 Home Page Welcome Title Fluid Scaling */
.welcome-title {
  width: clamp(220px, 35vw, 480px) !important;
  max-width: 100% !important;
  height: auto !important;
  vertical-align: middle;
  margin: 0 auto;
  padding: 0;
  display: block;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}


/* ==========================================
   ✨ DRAGON REALMS TITLE AURA
   ========================================== */

.title-row img.dr-title {
  transition: transform 0.3s ease, filter 0.3s ease !important;
  filter: drop-shadow(0 0 2px rgba(147, 51, 234, 0.15));
}

.title-row img.dr-title:hover {
  transform: translateY(-2px) scale(1.01) !important;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7)) 
          drop-shadow(0 0 20px rgba(147, 51, 234, 0.5)) 
          drop-shadow(0 0 40px rgba(147, 51, 234, 0.3)) !important;
}

/* DR Page Exception: Kills hover & glow for DR title on its own main hub */
body.dr-page .title-row img.dr-title,
body.dr-page .title-row img.dr-title:hover {
  transform: none !important;
  filter: none !important;
}


/* ==========================================
   🏛️ SHADEWATCH BANNER & TITLE STACK SYMMETRY
   ========================================== */

/* 1. Strip extra bottom spacing off DragonRealms title row */
.title-row,
.title-row h1,
.title-row img.dr-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Shadewatch Banner Container (20px gap below DragonRealms title) */
.shadewatch-identifier {
  text-align: center;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  width: 100%;
  padding: 0 !important;
}

/* 3. Shrink-wrap anchor tag to eliminate ghost clicks */
.shadewatch-identifier a {
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  max-width: 550px !important;
  margin: 0 auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}

/* 4. Image sizing */
.shadewatch-identifier img,
.shadewatch-identifier a img {
  width: 100% !important;
  max-width: 550px !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
  transition: transform 0.3s ease, filter 0.3s ease !important;
  filter: drop-shadow(0 0 2px rgba(147, 51, 234, 0.15)) !important;
}

/* 5. Hover state */
.shadewatch-identifier a:hover img {
  transform: translateY(-2px) scale(1.01) !important;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.7)) 
          drop-shadow(0 0 20px rgba(147, 51, 234, 0.5)) 
          drop-shadow(0 0 40px rgba(147, 51, 234, 0.3)) !important;
}

/* Disable hover glow on main mirror index page */
body.shadewatchmirror-page .shadewatch-identifier a:hover img,
body.shadewatchmirror-page .shadewatch-identifier img {
  transform: none !important;
  filter: none !important;
}


/* ==========================================
   🌟 LOGO CONFIGURATION & ARCANE HOVER FLARE
   ========================================== */

.logo-container,
.title-row .title a:has(.logo),
header a:has(.logo) {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.logo {
  position: absolute !important;    
  top: 20px !important;          
  right: 30px !important;          
  width: 75px !important;    
  height: auto !important;
  max-width: none !important;
  z-index: 20;
  pointer-events: auto !important;
  will-change: transform, filter; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  filter: drop-shadow(0 0 2px rgba(147, 51, 234, 0.25));
}

.logo:hover {
  transform: translateY(-5px) scale(1.08) rotate(2deg) !important;
  animation: siphonFlare 2.5s infinite ease-in-out !important;
}

@keyframes siphonFlare {
  0% {
    filter: 
      drop-shadow(0 0 4px #ffffff)
      drop-shadow(0 0 10px #00e5ff)
      drop-shadow(0 0 22px rgba(168, 85, 247, 0.85))
      drop-shadow(0 0 40px rgba(147, 51, 234, 0.6));
  }
  50% {
    filter: 
      drop-shadow(0 0 7px #ffffff)
      drop-shadow(0 0 16px #ffd27f)
      drop-shadow(0 0 32px rgba(244, 114, 182, 0.95))
      drop-shadow(0 0 55px rgba(168, 85, 247, 0.75));
  }
  100% {
    filter: 
      drop-shadow(0 0 4px #ffffff)
      drop-shadow(0 0 10px #00e5ff)
      drop-shadow(0 0 22px rgba(168, 85, 247, 0.85))
      drop-shadow(0 0 40px rgba(147, 51, 234, 0.6));
  }
}

body.home-page .logo,
body.home-page .logo:hover {
  transform: none !important;
  filter: none !important;
  animation: none !important;
}


/* ==========================================
   🔮 SIDEBAR MENU SYSTEM
   ========================================== */

.side-menu {
  position: fixed;
  top: 0;        
  left: 0;        
  width: 240px;
  height: 100vh; 
  background: #111;
  color: #ddd;
  padding: 5px 0;
  overflow-y: auto;
  font-family: Inter, sans-serif;
  z-index: 2;         
  border-right: none; 
}

.side-menu li {
  line-height: normal; 
  height: auto;
}

.menu-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  cursor: pointer;
  line-height: 1.3; 
  height: auto;      
  position: relative;
}

.menu-row:has(.active-link) {
  background: #222 !important;
}

.menu-row a {
  color: #ccc;
  text-decoration: none;
  font-size: 15px;
  flex-grow: 1;
  padding: 10px 30px; 
  display: block;
  line-height: 1.3; 
  height: auto;
}

.menu-row:hover {
  background: #222;
}

.side-menu > .menu-section > .menu-row a {
  padding-left: 15px;
}

.side-menu > .menu-section > .submenu > li > .menu-row a {
  padding-left: 30px;
}

.side-menu > .menu-section > .submenu > li > .submenu > li > .menu-row a,
.side-menu > .menu-section > .submenu > li > .submenu > li > a {
  padding-left: 45px;
}

.side-menu .submenu .submenu .submenu a {
  padding-left: 60px;
}

.arrow-icon {
  color: #ccc;
  transition: transform 0.25s ease;
  margin-right: 20px;
  position: relative;
  z-index: 10;
}

.menu-section.open > .menu-row .arrow-icon {
  transform: rotate(90deg);
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.menu-section.open > .submenu {
  max-height: 1000px;
}

.submenu a {
  display: block;
  color: #aaa;
  text-decoration: none;
  font-size: 14px;
}

.submenu a:hover {
  background: #333;
  color: #fff;
}


/* ==========================================
   🔱 GOLDEN VEINS & ACTIVE STATE SELECTION
   ========================================== */

.side-menu .active-link {
  background: transparent !important; 
  color: #ffd27f !important;   
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 210, 127, 0.6); 
}

.menu-row:has(.active-link) {
  background: #222 !important; 
}

.menu-section.open > .menu-row > a,
.menu-section.open > .menu-row .arrow-icon {
  color: #ffd27f !important;
  text-shadow: 0 0 6px rgba(255, 210, 127, 0.6);
  opacity: 1 !important; 
}

.submenu a:hover {
  background: transparent !important; 
}

.menu-row:hover {
  background: #222 !important;
}

.menu-row:hover a,
.menu-row:hover .arrow-icon {
  color: #ffffff !important; 
  text-shadow: 0 0 10px rgba(255, 210, 127, 0.8) !important;
}


/* ==========================================
   🪷 SCROLLBARS (GLOBAL & SIDE MENU)
   ========================================== */

html::-webkit-scrollbar {
  width: 14px;
}

html::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 0.95);
  border-left: 1px solid rgba(186, 85, 211, 0.3);
  box-shadow: 
    inset 10px 0 20px rgba(147, 51, 234, 0.25),
    -15px 0 30px rgba(168, 85, 247, 0.3),
    -30px 0 60px rgba(147, 51, 234, 0.15) !important;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4c1d95, #2e1065) !important;
  border-radius: 7px;
  border: 2px solid #d8b4fe;
  box-shadow: 
    inset 0 0 10px rgba(216, 180, 254, 0.7),
    0 0 15px rgba(192, 132, 252, 0.6) !important;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6d28d9, #4c1d95) !important;
  border-color: #f472b6 !important;
  box-shadow: 
    inset 0 0 14px rgba(244, 114, 182, 0.9),
    0 0 25px rgba(216, 112, 214, 0.8) !important;
}

.side-menu::-webkit-scrollbar {
  width: 14px;
}

.side-menu::-webkit-scrollbar-track {
  background: rgba(5, 5, 5, 0.95);
  border-right: 1px solid rgba(186, 85, 211, 0.3);
  box-shadow: 
    inset -10px 0 20px rgba(147, 51, 234, 0.25),
    15px 0 30px rgba(168, 85, 247, 0.3),
    30px 0 60px rgba(147, 51, 234, 0.15) !important;
}

.side-menu::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4c1d95, #2e1065) !important;
  border-radius: 7px;
  border: 2px solid #d8b4fe;
  box-shadow: 
    inset 0 0 10px rgba(216, 180, 254, 0.7),
    0 0 15px rgba(192, 132, 252, 0.6) !important;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.side-menu::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6d28d9, #4c1d95) !important;
  border-color: #f472b6 !important;
  box-shadow: 
    inset 0 0 14px rgba(244, 114, 182, 0.9),
    0 0 25px rgba(216, 112, 214, 0.8) !important;
}


/* ==========================================
   🖼️ PAGE-SPECIFIC DYNAMIC BACKGROUND OVERRIDES
   ========================================== */

body.home-page {
  background-image: url("/background-image.png");
  background-repeat: no-repeat;
  background-position: center center; 
  background-size: cover;        
  background-attachment: fixed;    
}

body.autobiography-page {
  background-image: url("/autobiography/background-image.png"); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body.dr-page {
  background-image: url("/dr/background-image.png"); 
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body.shadewatchmirror-page,
body.individual-shadewatchmirror-page {
  background-image: url("/dr/shadewatchmirror/background-image.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
}

body.entertainment-page,
body.pictures-page,
body.spotify-page,
body.videos-page,
body.musicvideos-page {
  background-image: url("/entertainment/background-image.png"); 
  background-repeat: repeat;                     
  background-position: top left;                 
  background-size: 50%;                            
  background-attachment: scroll;                 
}

body.lich-page {
  background-image: url("/dr/background-image.png"); 
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;            
  background-attachment: fixed !important;     
}

body.medicalcannabis-page {
  background-image: url("/medicalcannabis/background-image.png"); 
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;            
  background-attachment: fixed !important;     
}

body.terpenes-page {
  background-image: url("/medicalcannabis/terpenes/background-image.png"); 
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;            
  background-attachment: fixed !important;            
}

body.methods-page {
  background-image: url("/medicalcannabis/methods/background-image.png"); 
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;            
  background-attachment: fixed !important;            
}

body.cannabinoids-page {
  background-image: url("/medicalcannabis/cannabinoids/background-image.png"); 
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;            
  background-attachment: fixed !important;            
}


/* ==========================================
   🎚️ JUKEBOX & AUDIO PLAYER
   ========================================== */

.audio-cropper-wrapper {
  width: 100%;
  height: 40px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 15px;
  display: block;
  position: relative;
}

#global-audio-player {
  width: calc(100% + 42px) !important; 
  margin-left: -42px !important;        
  height: 40px;
  display: block;
  padding-left: 11px !important;
  box-sizing: border-box !important;
}

.menu-row button:active,
.menu-row div:active,
.active-press {
  opacity: 0.5;                  
  filter: grayscale(0.8);      
  box-shadow: none !important; 
  transform: scale(0.96);      
  transition: all 0.15s ease;
}

/* 🔵 CUED / STARTUP */
.track-list button.cued-track {
  color: #4ea8de !important;
  letter-spacing: 0.5px;
  background: none !important;
  border-color: rgba(78, 168, 222, 0.6) !important;
  border-left: 3px solid #4ea8de !important;
  box-shadow: 0 0 10px rgba(78, 168, 222, 0.25) !important;
  text-shadow: 0 0 8px rgba(78, 168, 222, 0.7) !important;
}

#jukebox-current-status {
  color: #4ea8de !important;
  text-shadow: 0 0 8px #4ea8de, 0 0 15px rgba(78, 168, 222, 0.7) !important;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

/* 🟢 ACTIVE PLAYING */
.track-list button.active-track {
  color: #00ff66 !important;
  letter-spacing: 0.5px;
  background: none !important;
  border-color: rgba(0, 255, 102, 0.8) !important;
  border-left: 3px solid #00ff66 !important;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.3) !important;
  text-shadow: 0 0 8px #00ff66 !important;
  animation: none !important;
}

.jukebox-deck-wrapper.deck-active {
  border-color: rgba(0, 255, 102, 0.7) !important;
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.25) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  animation: none !important;
}

.jukebox-deck-wrapper.deck-active #jukebox-current-status,
.audio-playlist-container:has(.deck-active) #jukebox-current-status {
  color: #00ff66 !important;
  text-shadow: 0 0 8px #00ff66, 0 0 14px rgba(0, 255, 102, 0.6) !important;
}

/* 🟡 PAUSED */
.track-list button.paused-track {
  color: #ffd27f !important;
  letter-spacing: 0.5px;
  background: none !important;
  border-color: rgba(255, 210, 127, 0.6) !important;
  border-left: 3px solid #ffd27f !important;
  box-shadow: 0 0 10px rgba(255, 210, 127, 0.25) !important;
  text-shadow: 0 0 8px rgba(255, 210, 127, 0.7) !important;
  animation: none !important;
}

.jukebox-deck-wrapper.deck-paused {
  border-color: rgba(255, 210, 127, 0.7) !important;
  box-shadow: 0 0 12px rgba(255, 210, 127, 0.25) !important;
  background: rgba(0, 0, 0, 0.35) !important;
  animation: none !important;
}

.jukebox-deck-wrapper.deck-paused #jukebox-current-status,
.audio-playlist-container:has(.deck-paused) #jukebox-current-status {
  color: #ffd27f !important;
  text-shadow: 0 0 8px #ffd27f, 0 0 14px rgba(255, 210, 127, 0.6) !important;
}

/* ⏹️ STOPPED */
.track-list button.stopped-track {
  color: #ef476f !important;
  letter-spacing: 0.5px;
  background: none !important;
  border-color: rgba(239, 71, 111, 0.8) !important;
  border-left: 3px solid #ef476f !important;
  box-shadow: 0 0 10px rgba(239, 71, 111, 0.3) !important;
  text-shadow: 0 0 8px #ef476f !important;
  animation: none !important;
}

.jukebox-deck-wrapper.deck-stopped {
  background: rgba(0, 0, 0, 0.35) !important;
  border-color: rgba(239, 71, 111, 0.8) !important;
  box-shadow: 0 0 12px rgba(239, 71, 111, 0.25) !important;
  animation: none !important;
}

.jukebox-deck-wrapper.deck-stopped #jukebox-current-status,
.audio-playlist-container:has(.deck-stopped) #jukebox-current-status {
  color: #ef476f !important;
  text-shadow: 0 0 8px #ef476f, 0 0 14px rgba(239, 71, 111, 0.6) !important;
}

.jukebox-deck-wrapper {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.spark-card {
  position: relative;
  width: 100%;             
  height: auto;            
  border-radius: 12px;
  background: #000000 !important;
  overflow: visible !important; /* Prevents clipping orbiting elements */
}

.audio-playlist-container {
  background: #000000 !important;
  border: 2px solid #000000 !important;
  border-radius: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, box-shadow;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

/* Original Hover Effect */
.audio-playlist-container:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: #ffffff !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(255, 225, 170, 0.7),
    0 0 50px rgba(255, 210, 127, 0.5),
    0 35px 70px rgba(0, 0, 0, 0.9),
    0 0 90px rgba(255, 210, 127, 0.25) !important;
  z-index: 50;
}

.spark-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.border-base {
  fill: none;
  stroke-width: 3.5px;
  transition: stroke 0.4s ease, filter 0.4s ease;
}

.border-base,
.audio-playlist-container:has(.deck-cued) .border-base {
  stroke: #ffffff;
  filter: drop-shadow(0 0 3px #00e5ff) drop-shadow(0 0 8px #4ea8de) drop-shadow(0 0 16px rgba(78, 168, 222, 0.85));
}

.audio-playlist-container:has(.deck-active) .border-base {
  stroke: #ffffff;
  filter: drop-shadow(0 0 3px #00ff66) drop-shadow(0 0 8px #4bb543) drop-shadow(0 0 16px rgba(75, 181, 67, 0.85));
}

.audio-playlist-container:has(.deck-paused) .border-base {
  stroke: #ffffff;
  filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 8px #ffd27f) drop-shadow(0 0 16px rgba(255, 210, 127, 0.85));
}

.audio-playlist-container:has(.deck-stopped) .border-base {
  stroke: #ffffff;
  filter: drop-shadow(0 0 3px #ff2a5f) drop-shadow(0 0 8px #ef476f) drop-shadow(0 0 16px rgba(239, 71, 111, 0.85));
}


/* ==========================================
   ✨ CHARACTER TITLE, LEYLINE & HERO PORTRAIT
   ========================================== */

.character-name {
  text-align: center;
  width: 100%;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

.character-title-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); 
}

/* Overpowers the inline HTML style on the leyline */
main div.magical-divider.leyline {
  margin-top: 10px !important;    /* Pulls stars closer to crystal tips */
  margin-bottom: 45px !important; /* Pushes hero portrait down significantly */
}

/* Hero Portrait Outer Frame & Inner Glow Overlay */
.hero-portrait-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  max-width: 650px !important;
  margin: 0 auto 35px auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  clear: both !important;
  float: none !important;
}

.hero-portrait-container .link-image {
  display: block !important;
  position: relative !important;
  float: none !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
  transform: none !important;
  cursor: default !important;
}

.hero-portrait-container img.hero-portrait-img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: unset !important;
  aspect-ratio: auto !important;
  display: block !important;
  border-radius: 12px !important;
  margin: 0 auto !important;
  transform: none !important;
  transition: none !important;
  box-shadow: 0 0 25px 10px rgba(0, 0, 0, 0.85) !important;
}

.hero-portrait-container::after {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 35px 15px rgba(0, 0, 0, 0.9) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}


/* ==========================================
   🖼️ CARDS, GRIDS & PORTALS
   ========================================== */

.image-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap; 
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.link-image, .portal-card {
  display: block;
  width: 450px;                    
  aspect-ratio: 16 / 10;  
  overflow: hidden;
  border-radius: 14px;
  background: #000;
  border: 2px solid rgba(255, 210, 127, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 210, 127, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.link-image:hover, .portal-card:hover {
  transform: translateY(-12px) scale(1.05); 
  border-color: #ffffff;          
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(255, 225, 170, 0.7),
    0 0 50px rgba(255, 210, 127, 0.5),
    0 35px 70px rgba(0, 0, 0, 0.9), 
    0 0 90px rgba(255, 210, 127, 0.25);
}

.link-image img, .portal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;     
  display: block;
}

.shadewatchmirror-pictures {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
}

.shadewatchmirror-gallery-layout .image-grid {
  display: flex;          
  flex-wrap: wrap;        
  gap: 5px;
  padding: 5px;
  justify-content: flex-start;
}

.shadewatchmirror-gallery-layout .link-image {
  display: block;
  width: 200px;            
  height: 300px;            
  flex-shrink: 0;        
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  border: 2px solid rgba(255, 210, 127, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 210, 127, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.shadewatchmirror-gallery-layout .link-image:hover {
  transform: translateY(-12px) scale(1.05); 
  border-color: #ffffff;          
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(255, 225, 170, 0.7),
    0 0 50px rgba(255, 210, 127, 0.5),
    0 35px 70px rgba(0, 0, 0, 0.9), 
    0 0 90px rgba(255, 210, 127, 0.25);
  z-index: 50; 
}

.shadewatchmirror-gallery-layout .link-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;     
  display: block;
}

.shadewatchmirror-gallery-layout .video-tile {
  display: block;
  width: 405px;           /* (200px * 2) + 5px gap */
  height: 300px;          
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 2px solid rgba(255, 210, 127, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 210, 127, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.shadewatchmirror-gallery-layout .video-tile video,
.shadewatchmirror-gallery-layout .video-tile iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.shadewatchmirror-gallery-layout .video-tile:hover {
  transform: translateY(-12px) scale(1.02); 
  border-color: #ffffff;                      
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(255, 225, 170, 0.7),
    0 0 50px rgba(255, 210, 127, 0.5),
    0 35px 70px rgba(0, 0, 0, 0.9), 
    0 0 90px rgba(255, 210, 127, 0.25);
  z-index: 50; 
}

body.entertainment-page main,
body.pictures-page main,
body.videos-page main,
body.musicvideos-page main {
  display: flex;
  flex-direction: column;
}

body.entertainment-page .image-grid,
body.pictures-page .image-grid,
body.videos-page .image-grid,
body.musicvideos-page .image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 320px) !important;
  gap: 20px !important;                                         
  justify-content: center !important; 
  width: 100% !important;
  padding: 20px 0 !important;
}

body.entertainment-page .image-grid .link-image,
body.entertainment-page .image-grid .portal-card,
body.pictures-page .image-grid .link-image,
body.pictures-page .image-grid .portal-card,
body.videos-page .image-grid .link-image,
body.videos-page .image-grid .portal-card,
body.musicvideos-page .image-grid .link-image,
body.musicvideos-page .image-grid .portal-card {
  width: 100% !important;      
  height: auto !important;
  aspect-ratio: 16 / 10 !important;
  margin: 0 auto;                
}

.home-card-layout .link-image,
.home-card-layout .portal-card,
body.medicalcannabis-page .image-row .portal-card {
  width: 280px !important;        
  aspect-ratio: auto !important; 
  height: auto !important;        
}

.home-card-layout .link-image {
  width: 280px;        
  aspect-ratio: auto; 
  height: auto;        
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 2px solid rgba(255, 210, 127, 0.4);
  background: #000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 210, 127, 0.15);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
}

.home-card-layout .link-image:hover {
  transform: translateY(-12px) scale(1.05); 
  border-color: #ffffff;          
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
    0 0 25px rgba(255, 225, 170, 0.7),
    0 0 50px rgba(255, 210, 127, 0.5),
    0 35px 70px rgba(0, 0, 0, 0.9), 
    0 0 90px rgba(255, 210, 127, 0.25);
}

.home-card-layout .link-image img {
  width: 100%;
  height: auto;
  object-fit: contain; 
  display: block;
}


/* ==========================================
   🎬 MEDIA PORTAL LIGHTBOX & FILMSTRIP INTERACTION
   ========================================== */

.lightbox {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.9) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 30px 15px 15px 15px !important;
  box-sizing: border-box !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 10000 !important;
}

.lightbox.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* 🖼️ Standard Image & Native Video Sizing */
#lightbox-img,
#lightbox-video {
  position: relative;
  z-index: 1;
  max-width: 90vw !important;
  max-height: calc(82vh - 90px) !important;
  object-fit: contain !important;
  margin: auto !important;
  border-radius: 10px;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.18);
  display: none;
}

.lightbox.active img#lightbox-img {
  animation: fadeZoom 0.25s ease;
}

/* 🎥 Large Responsive YouTube Lightbox Sizing */
body.videos-page #lightbox-youtube,
body.musicvideos-page #lightbox-youtube {
  display: block !important;
  width: min(90vw, calc((78vh - 90px) * 16 / 9), 1050px) !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  margin: auto !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.25) !important;
  z-index: 10 !important;
}

body.videos-page #lightbox-img,
body.videos-page #lightbox-video,
body.musicvideos-page #lightbox-img,
body.musicvideos-page #lightbox-video {
  display: none !important;
}

/* ❌ Disable wide side click zones */
.hit-left,
.hit-right {
  display: none !important;
  pointer-events: none !important;
}

/* 🎯 Clickable Arrows */
.arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 45px;
  line-height: 1;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0;
  opacity: 1;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
  z-index: 10002 !important;
  pointer-events: auto;
}

.arrow:hover {
  cursor: pointer !important;
  color: #ffd27f;
  transform: translateY(-50%) scale(1.15);
  text-shadow: 0 0 12px rgba(255, 210, 127, 0.6);
}

.prev { 
  left: 20px; 
}

.next { 
  right: 20px; 
}

.close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  z-index: 10002 !important;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close:hover {
  color: #ffd27f;
  transform: scale(1.1);
}

.lightbox:not(.active) .arrow,
.lightbox:not(.active) .close,
.arrow.hidden {
  display: none !important;
  pointer-events: none !important;
}

@keyframes fadeZoom {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.dark {
  filter: invert(1) hue-rotate(180deg);
}

/* ==========================================
   🎞️ HORIZONTAL FILMSTRIP RIBBON
   ========================================== */

.lightbox-filmstrip {
  position: relative !important;
  z-index: 10001 !important;
  width: 95% !important;
  max-width: 950px !important;
  height: 68px !important;
  min-height: 68px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 14px !important;
  margin: 10px auto 0 auto !important;
  background: rgba(12, 12, 14, 0.88) !important;
  border: 1.5px solid rgba(255, 210, 127, 0.35) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), inset 0 0 12px rgba(0, 0, 0, 0.6) !important;
  box-sizing: border-box !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
}

.lightbox-filmstrip::-webkit-scrollbar {
  height: 4px;
}

.lightbox-filmstrip::-webkit-scrollbar-thumb {
  background: rgba(255, 210, 127, 0.4);
  border-radius: 4px;
}

.lightbox-filmstrip::-webkit-scrollbar-track {
  background: transparent;
}

.lightbox-thumb {
  position: relative !important;
  flex: 0 0 70px !important;
  width: 70px !important;
  height: 48px !important;
  min-width: 70px !important;
  min-height: 48px !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  cursor: pointer !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  opacity: 0.45 !important;
  scroll-snap-align: center !important;
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
  background: #000000 !important;
  box-sizing: border-box !important;
}

.lightbox-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  pointer-events: none !important;
}

.lightbox-thumb.video-thumb::after {
  content: '▶' !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.5) !important;
  text-shadow: 0 0 4px #000000 !important;
}

.lightbox-thumb:hover {
  opacity: 0.85 !important;
  transform: translateY(-2px) !important;
  border-color: rgba(255, 210, 127, 0.65) !important;
}

.lightbox-thumb.active-thumb {
  opacity: 1 !important;
  transform: scale(1.06) !important;
  border-color: #ffd27f !important;
  box-shadow: 0 0 12px rgba(255, 210, 127, 0.75), 0 0 4px #ffffff !important;
}

@media screen and (max-width: 768px) {
  .lightbox {
    padding: 25px 10px 10px 10px !important;
  }

  #lightbox-img,
  #lightbox-video {
    max-height: calc(75vh - 65px) !important;
  }

  .lightbox-filmstrip {
    width: 98% !important;
    height: 54px !important;
    min-height: 54px !important;
    gap: 8px !important;
    padding: 4px 8px !important;
  }

  .lightbox-thumb {
    flex: 0 0 54px !important;
    width: 54px !important;
    height: 40px !important;
    min-width: 54px !important;
    min-height: 40px !important;
  }
}

	/* 🕶️ Lightbox Arrows Auto-Hide (2s Idle) */
	#lightbox .arrow {
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.35s ease;
		z-index: 100 !important;
	}

	#lightbox.user-active .arrow,
	#lightbox .arrow:hover {
		opacity: 1 !important;
		pointer-events: auto !important;
	}

	/* 🛡️ Release iframe & video mouse control when idle so parent site hides cursor */
	#lightbox.active:not(.user-active) iframe,
	#lightbox.active:not(.user-active) video,
	#lightbox.cursor-hidden iframe,
	#lightbox.cursor-hidden video {
		pointer-events: none !important;
	}

	/* 🖱️ Vanish Cursor & Trail at 3s */
	html.lightbox-hide-cursor,
	html.lightbox-hide-cursor *,
	body.lightbox-hide-cursor,
	body.lightbox-hide-cursor *,
	#lightbox.cursor-hidden,
	#lightbox.cursor-hidden * {
		cursor: none !important;
	}

	/* Trail letters vanish cleanly */
	.trail-letter {
		pointer-events: none !important;
	}

	body.lightbox-hide-cursor .trail-letter {
		opacity: 0 !important;
		transition: opacity 0.25s ease;
	}

/* ==========================================
   🔺 GLOBAL BACK-TO-TOP BUTTON
   ========================================== */

#backToTopBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 55px;          
  height: 55px;          
  background: rgba(17, 17, 17, 0.9); 
  color: #ccc;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%; 
  cursor: pointer;
  display: block;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  line-height: 1.2; 
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99999; 
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

#backToTopBtn::before {
  content: "▲";
  display: block;
  font-size: 11px;
  margin-top: 7px;     
  margin-bottom: 1px;
  color: #ffd27f;      
}

#backToTopBtn:hover {
  color: #fff;
  border-color: #ffd27f;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 210, 127, 0.4);
}

#backToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}


/* ==========================================
   🎬 FOOTER LAYER ARCHITECTURE
   ========================================== */

footer {
  text-align: center;
  padding: 20px 15px;        
  background: rgba(0, 0, 0, 0.8);
  color: white;
  margin-left: 240px; 
  line-height: 1.5;          
  display: block;            
  word-wrap: break-word;    
}

footer small {
  line-height: 1.5;
  display: inline-block;    
}


/* ==========================================
   🖼️ PARALLAX HOVER SECTOR DIVIDERS
   ========================================== */

.parallax-divider {
  height: 140px; 
  margin: 40px 0; 
  width: 100%; 
  background-image: url('32 desi c58 (key anime cinematic).png'); 
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.divider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom, 
    rgba(17, 17, 17, 1) 0%,    
    rgba(17, 17, 17, 0) 25%,    
    rgba(17, 17, 17, 0) 75%,    
    rgba(17, 17, 17, 1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-sigil {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: bold;
  color: #ffffff; 
  font-size: clamp(1.1rem, 4.5vw, 1.6rem); 
  letter-spacing: 8px;
  white-space: nowrap; 
  padding: 10px 25px; 
  text-align: center;
  text-shadow: 
    0 0 4px #fff, 
    0 0 10px #ffd27f, 
    0 0 20px #ffd27f, 
    0 0 40px #4ea8de, 
    0 0 60px #4ea8de;
  animation: magicPulse 4s ease-in-out infinite alternate;
}

@keyframes magicPulse {
  0% {
    transform: scale(0.98);
    text-shadow: 0 0 4px #fff, 0 0 10px #ffd27f, 0 0 25px rgba(255, 210, 127, 0.6), 0 0 40px rgba(78, 168, 222, 0.4);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.02);
    text-shadow: 0 0 6px #fff, 0 0 15px #ffd27f, 0 0 35px rgba(255, 210, 127, 0.9), 0 0 55px rgba(78, 168, 222, 0.7);
    opacity: 1;
  }
}


/* ==========================================
   ☄️ TEXT-TRAIL CURSOR STYLING
   ========================================== */

#text-trail-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none; 
  z-index: 99999;
}

.trail-letter {
  position: absolute;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: bold;
  color: #ffffff;
  font-size: 1rem;
  pointer-events: none;
  will-change: transform;
  text-shadow: 
    0 0 4px #fff, 
    0 0 8px #ffd27f, 
    0 0 15px rgba(255, 210, 127, 0.6);
}


/* ==========================================
   📊 MEDICAL DATA DISPLAY TABLES
   ========================================== */

.terpene-table-container {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.table-title {
  color: #2c3e50;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
}

.terpene-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.terpene-table th {
  background-color: #4a6b82;
  color: #ffffff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.terpene-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf2f7;
  color: #4a5568 !important;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: top;
}

.terpene-table tr:hover {
  background-color: #f7fafc;
}

.terpene-table tr:last-child td {
  border-bottom: none;
}

.terpene-name {
  font-weight: 700;
  color: #2d3748;
}

.table-internal-title {
  background-color: #2c3e50 !important; 
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  text-align: center !important;
  padding: 18px !important;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.home-hero .terpene-table-container {
  padding: 0;
  margin: 0;
  background: #ffffff; 
  border-radius: 8px;
  overflow: hidden;
}


/* ==========================================
   🌿 MEDICAL CANNABIS METHODS & CANNABINOIDS PAGES
   ========================================== */

body.methods-page .methods-hero-box,
body.cannabinoids-page .cannabinoids-hero-box {
  background: rgba(5, 5, 5, 0.93); 
  border: 2px solid #ffd27f;
  border-radius: 16px;
  padding: 40px;
  text-align: left;
  max-width: 1050px;
  margin: 40px auto;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 210, 127, 0.2);
  backdrop-filter: blur(20px);
}

body.methods-page .methods-hero-title,
body.cannabinoids-page .cannabinoids-hero-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #fff;
  font-size: 2.6rem;
  margin: 0 0 15px 0;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px #ffd27f;
}

body.methods-page .methods-hero-text,
body.cannabinoids-page .cannabinoids-hero-text {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

body.methods-page .methods-vertical-stack,
body.cannabinoids-page .cannabinoids-vertical-stack {
  max-width: 1050px;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  gap: 30px; 
}

body.methods-page .methods-row-frame,
body.cannabinoids-page .cannabinoids-row-frame {
  background: rgba(5, 5, 5, 0.85);
  border: 2px solid rgba(255, 210, 127, 0.4);
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

body.methods-page .methods-row-frame h3 {
  font-family: 'Playfair Display', serif;
  color: #ffd27f;
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  text-shadow: 0 0 8px rgba(255, 210, 127, 0.3);
}

body.methods-page .methods-row-frame p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

body.methods-page .methods-hero-box .hero-divider,
body.cannabinoids-page .cannabinoids-hero-box .hero-divider {
  margin: 0 0 20px 0 !important;
  background-position: left center !important;
  display: block !important;
}

body.cannabinoids-page .cannabinoids-row-frame h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-family: 'Playfair Display', serif;
  color: #ffd27f;
  text-shadow: 0 0 8px rgba(255, 210, 127, 0.3);
}

body.cannabinoids-page .cannabinoids-row-frame p {
  font-size: 0.95rem; 
  line-height: 1.6;   
  margin-bottom: 12px; 
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.9);
}

body.cannabinoids-page .cannabinoids-row-frame p:last-child {
  margin-bottom: 0;
}


/* ==========================================
   📟 RAW GAME TERMINAL PROFILE & CARDS
   ========================================== */

.terminal-profile {
  font-family: 'Consolas', 'Courier New', 'Fira Code', monospace;
  font-size: 0.75rem;
  line-height: 1.4;   
  color: #e2e8f0;
  background: rgba(0, 0, 0, 0.75);
  padding: 22px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255, 210, 127, 0.25);
  border-left: 4px solid #ffd27f;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.dr-profile-card,
.backstory-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 15, 18, 0.92), rgba(5, 5, 5, 0.88));
  border: 1px solid rgba(255, 210, 127, 0.35);
  border-radius: 14px;
  padding: 35px 30px;
  max-width: 900px;
  margin: 35px auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 210, 127, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.dr-profile-card::before,
.backstory-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd27f, transparent);
  box-shadow: 0 0 8px #ffd27f;
}

.card-header {
  font-family: 'Playfair Display', serif;
  color: #ffd27f;
  text-align: center;
  font-size: 1.85rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255, 210, 127, 0.35);
}


/* ==========================================
   📱 RESPONSIVE BREAKPOINTS & MOBILE OVERRIDES
   ========================================== */

@media screen and (max-width: 900px) {
  .title-row {
    padding: 30px 20px 0 20px !important;
  }
}

@media screen and (max-width: 768px) {
  main, header, footer {
    margin-left: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  header {
    margin-top: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .title-row {
    padding: 10px 0 0 0 !important;
    flex-direction: column !important;
  }

  .medicalcannabis-title,
  .entertainment-title,
  .dr-title,
  .welcome-title {
    width: 90% !important;
    max-width: 320px !important;
  }

  .link-image, 
  .portal-card,
  .shadewatchmirror-gallery-layout .video-tile {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .side-menu {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;     
    overflow-y: visible !important;  
  }

  .logo,
  .logo-container,
  header a:has(.logo),
  .title-row .title a:has(.logo),
  #text-trail-container {
    display: none !important;
  }

  .terpene-table-container {
    overflow-x: auto;
  }

  .terpene-table th, 
  .terpene-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (hover: none) or (pointer: coarse) {
  #text-trail-container {
    display: none !important;
  }
}

/* ==========================================
   ✨ LEYLINE DIVIDER STYLING & SPACING
   ========================================== */

.magical-divider.leyline {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  letter-spacing: 24px !important;
  padding-left: 24px !important;
  position: relative !important;
  color: #ffffff !important;
  opacity: 0.85 !important;
  text-shadow: 0 0 5px #ffffff, 0 0 10px #ffd27f, 0 0 20px #4ea8de !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.2rem !important;

  /* Custom Vertical Spacing Gap */
  margin-top: 10px !important;    /* Pulls stars closer to crystal tips above */
  margin-bottom: 45px !important; /* Pushes hero portrait down below */
}

/* ==========================================
   🧙‍♂️ LICH PAGE & HEADER BANNER STYLES
   ========================================== */

/* Page Base */
body.lich-page {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: #e0e0e0;
}

/* 🏷️ HEADER LICH TITLE BANNER */
body.lich-page .lich-identifier {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  width: 100%;
}

body.lich-page .lich-banner-size {
  max-width: 320px;
  width: 100%;
  display: block;
  margin-bottom: 0 !important;
}

body.lich-page .lich-banner-size img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 10px rgba(112, 0, 255, 0.4));
  margin-bottom: 0 !important;
}

/* 📦 MAIN CONTAINER (Offsets 240px sidebar) */
.lich-page-container {
  margin-left: 240px; 
  padding: 40px;
  max-width: 1100px;
  box-sizing: border-box;
}

/* Shared Frosted Glass Card */
.glass-card {
  background: rgba(17, 17, 17, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 210, 127, 0.05);
  backdrop-filter: blur(12px);
  margin-bottom: 30px;
}

/* Hero Section */
.hero-card {
  border-left: 4px solid #ffd27f;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 210, 127, 0.1);
  border: 1px solid rgba(255, 210, 127, 0.3);
  color: #ffd27f;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 15px;
}

.hero-card h1 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #fff;
  font-size: 2.4rem;
  margin: 0 0 12px 0;
  font-weight: 400;
  line-height: 1.2;
}

.hero-card p {
  color: #aaa;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 25px 0;
  max-width: 750px;
}

.action-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: #ffd27f;
  color: #111;
  border: 1px solid #ffd27f;
}

.btn-primary:hover {
  background: #ffe3ab;
  box-shadow: 0 0 15px rgba(255, 210, 127, 0.4);
  transform: translateY(-1px);
}

.btn-accent {
  background: rgba(112, 0, 255, 0.2);
  border: 1px solid #8c2bff;
  color: #e0b0ff;
}

.btn-accent:hover {
  background: rgba(112, 0, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(140, 43, 255, 0.5);
  border-color: #b366ff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #eee;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}

.btn-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.35);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  border-color: #34d399;
  transform: translateY(-1px);
}

.btn-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid #f59e0b;
  color: #fcd34d;
}

.btn-amber:hover {
  background: rgba(245, 158, 11, 0.35);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.btn-indigo {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid #6366f1;
  color: #a5b4fc;
}

.btn-indigo:hover {
  background: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
  border-color: #818cf8;
  transform: translateY(-1px);
}

/* Link Cards Layout */
.grid-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.link-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.link-card:hover {
  border-color: rgba(255, 210, 127, 0.4);
  transform: translateY(-2px);
}

.link-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #fff;
}

.link-card p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #888;
  line-height: 1.5;
}

.link-card a {
  color: #ffd27f;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.link-card a:hover {
  text-decoration: underline;
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .lich-page-container {
    margin-left: 0;
    padding: 20px;
  }
  .glass-card {
    padding: 25px 20px;
  }
  .lich-banner-size {
    max-width: 240px;
  }
}

body.lich-page .glass-card {
  max-width: 900px;
  margin: 0 auto 35px auto;
}


/* ==========================================
   PARTICLE AND SCROLLING ANIMATION
   ========================================== */

html {
  scroll-behavior: smooth;
}

/* 📜 SCROLL REVEAL ANIMATION STYLING */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ==========================================
   PARTICLE RAIN AND SUN
   ========================================== */

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Warm Sunlight Glow Overlay */
#sunlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 20%,
    rgba(255, 220, 140, 0.45) 0%,
    rgba(255, 175, 75, 0.25) 35%,
    rgba(0, 0, 0, 0) 75%
  );
  transition: opacity 0.15s ease-out;
}

/* ==========================================
   🔮 JUKEBOX CENTERING SONG TITLE TEXT
   ========================================== */

.track-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 0 16px !important;
  margin-top: 10px !important;
  box-sizing: border-box !important;
}

.track-list button {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 36px !important;
  padding: 0 12px !important;
  margin: 0 !important;
  background: transparent !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  border-left: 3px solid transparent !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease !important;
}

.track-list button:hover:not(.active-track):not(.cued-track):not(.paused-track):not(.stopped-track) {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 210, 127, 0.25) !important;
  border-left: 3px solid rgba(255, 210, 127, 0.6) !important;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 210, 127, 0.35) !important;
}

.track-list button.cued-track,
.track-list button.active-track,
.track-list button.paused-track,
.track-list button.stopped-track {
  font-weight: 600 !important;
}

.track-list button > span:first-child {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

.track-list button .track-end-emoji {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  font-size: 0.95rem !important;
  text-shadow: none !important;
  opacity: 0.35 !important;
  transition: opacity 0.2s ease !important;
}

.track-list button:hover .track-end-emoji,
.track-list button.cued-track .track-end-emoji,
.track-list button.active-track .track-end-emoji,
.track-list button.paused-track .track-end-emoji,
.track-list button.stopped-track .track-end-emoji {
  opacity: 1 !important;
}


/* ==========================================
   🏛️ HOME ABOUT CARD
   ========================================== */

.home-about-card {
  max-width: 900px !important;
  margin: 20px auto 50px auto !important;
  padding: 35px 40px !important;
}

.about-lead {
  font-family: 'Inter', sans-serif;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  text-align: left;
  text-indent: 2em;
  margin-bottom: 25px;
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 210, 127, 0.18);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.about-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 210, 127, 0.45);
  transform: translateY(-2px);
}

.about-sigil {
  color: #ffd27f;
  font-size: 1rem;
  line-height: 1.4;
  text-shadow: 0 0 8px rgba(255, 210, 127, 0.6);
  flex-shrink: 0;
}

.about-item p {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: rgba(225, 225, 225, 0.9);
  line-height: 1.5;
}

.about-item strong {
  color: #ffd27f;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .home-about-card {
    padding: 25px 20px !important;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   🏛️ HOME ALCHEMY MOTES CANVAS
   ========================================== */

#alchemy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

body.musicvideos-page .image-grid .link-image,
.video-link {
  aspect-ratio: 16 / 9 !important;
  position: relative !important;
  overflow: hidden !important;
}

body.musicvideos-page .image-grid .link-image img,
.video-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.video-link:hover .video-info,
.link-image:hover .video-info {
  transform: translateY(0);
  opacity: 1;
}

.video-title {
  font-family: 'Cinzel', serif;
  color: #ffd27f;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
  display: block;
}

.video-subtitle {
  font-family: 'Quicksand', sans-serif;
  color: #ffffff;
  font-size: 0.8rem;
  opacity: 0.85;
  display: block;
}


/* ==========================================
   🎵 SHADEWATCH MIRROR BOXES
   ========================================== */

.mirror-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.mirror-box {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid rgba(255, 210, 127, 0.5);
  box-shadow: 0 0 15px rgba(78, 168, 222, 0.25), inset 0 0 10px rgba(255, 210, 127, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.mirror-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
  filter: brightness(0.95);
}

.mirror-box:hover {
  transform: translateY(-6px);
  border-color: #ffd27f;
  box-shadow: 0 0 25px rgba(78, 168, 222, 0.6), 0 0 10px #ffd27f;
}

.mirror-box:hover img {
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(78, 168, 222, 0.4));
}

.mirror-box::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.mirror-box:hover::after {
  left: 150%;
}


/* ==========================================
   🎵 DYNAMIC THEME BACKDROP & OVERRIDES
   ========================================== */

body.individual-shadewatchmirror-page {
  background-image: none !important;
  background-color: #050505;
}

body.individual-shadewatchmirror-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 1;
  transition: background-image 1.2s ease-in-out, opacity 1.2s ease-in-out;
  pointer-events: none;
}

body.page-desiphon::before {
  background-image: url("/dr/shadewatchmirror/desiphon/background-image.png");
}

body.page-ametsandra::before {
  background-image: url("/dr/shadewatchmirror/ametsandra/background-image.png");
}

body.page-praxiuz::before {
  background-image: url("/dr/shadewatchmirror/praxiuz/background-image.png");
}

body.individual-shadewatchmirror-page[data-theme="fortune"]::before {
  background-image: url('/dr/shadewatchmirror/desiphon/fortune-bg.png');
}

body.individual-shadewatchmirror-page[data-theme="shield"]::before {
  background-image: url('/dr/shadewatchmirror/desiphon/shield-bg.png');
}

body.individual-shadewatchmirror-page[data-theme="rain"]::before {
  background-image: url('/dr/shadewatchmirror/desiphon/rain-bg.png');
}

body.individual-shadewatchmirror-page[data-theme="love"]::before {
  background-image: url('/dr/shadewatchmirror/desiphon/love-bg.png');
}

body.individual-shadewatchmirror-page[data-theme="grave"]::before {
  background-image: url('/dr/shadewatchmirror/desiphon/grave-bg.png');
}

body.individual-shadewatchmirror-page[data-theme="farewell"]::before {
  background-image: url('/dr/shadewatchmirror/desiphon/farewell-bg.png');
}