@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Noto+Serif+SC:wght@400;600;900&display=swap');

/* Core Variables & Tokens */
:root {
  --bg-primary: #0a0b0d;
  --bg-secondary: #121418;
  --bg-card: rgba(20, 24, 30, 0.9);
  --bg-inner-card: rgba(10, 12, 15, 0.7);
  --gold-primary: #e6c875;
  --gold-secondary: #c5a33c;
  --gold-light: #f5df98;
  --gold-glow: rgba(230, 200, 117, 0.35);
  --text-main: #f0f2f5;
  --text-muted: #8d99ae;
  --text-highlight: #9e2a2b; /* Traditional Crimson Red */
  
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-english: 'Cinzel', serif;

  /* Maximized Card Dimensions for pure infinite swiping */
  --card-width: 92vw;
  --card-max-width: 460px;
  --card-height: 80vh;
  --card-max-height: 620px;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset and Scrollbar Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
  position: relative;
}

/* Particle Canvas */
#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.65;
}

/* Base Wrapper */
.app-container {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* Portal Cover Screen */
.portal-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
  padding: 20px;
}

.portal-screen.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portal-border {
  position: absolute;
  top: 15px;
  right: 15px;
  bottom: 15px;
  left: 15px;
  border: 1px solid rgba(230, 200, 117, 0.15);
  pointer-events: none;
}

.portal-border::before, .portal-border::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--gold-secondary);
}

.portal-border::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.portal-border::after { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.portal-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeInDown 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-primary);
  letter-spacing: 0.25em;
  font-weight: 400;
  margin-bottom: 10px;
}

.portal-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.portal-title-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 50px;
  animation: scaleIn 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-title-vertical {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-left: 2px solid var(--gold-primary);
  border-right: 2px solid var(--gold-primary);
  padding: 15px 12px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 15px rgba(230, 200, 117, 0.2));
  margin-bottom: 25px;
}

.portal-subtitle {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-main);
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  margin-top: 10px;
  position: relative;
}

.portal-subtitle::before, .portal-subtitle::after {
  content: '·';
  color: var(--gold-primary);
  font-size: 1.5rem;
  position: absolute;
  top: -2px;
}
.portal-subtitle::before { left: -15px; }
.portal-subtitle::after { right: -25px; }

.portal-btn {
  background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  padding: 14px 45px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  animation: pulseGold 2s infinite ease-in-out;
}

.portal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px var(--gold-primary);
}

.portal-footer {
  position: absolute;
  bottom: 30px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.8;
  letter-spacing: 0.1em;
}

/* Floating Navigation Header (Douyin Overlay style) */
.header-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 15px 20px;
  z-index: 100;
  background: linear-gradient(180deg, var(--bg-primary) 60%, rgba(10,11,13,0.8) 85%, transparent);
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand span {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(22, 26, 32, 0.6);
  border: 1px solid rgba(230, 200, 117, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.circle-btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px var(--gold-glow);
}

.circle-btn svg {
  width: 18px;
  height: 18px;
}

/* Immersive Snapping Viewport (Douyin style infinite scrolling container) */
.stories-viewport {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 5;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.stories-viewport::-webkit-scrollbar {
  display: none;
}

/* Fullscreen Slide */
.story-slide {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Top-down padding prevents overlays blocking content (tabs removed, top padding optimized) */
  padding-top: 75px;
  padding-bottom: 50px;
  padding-left: 4vw;
  padding-right: 4vw;
  overflow: hidden;
}

/* Slide Inner card wrap */
.slide-card-wrap {
  width: 100%;
  height: 100%;
  max-width: 900px;
  background: var(--bg-card);
  border: 1.5px solid rgba(230, 200, 117, 0.18);
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease;
}

.card-border {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  left: 6px;
  border: 1px solid rgba(230, 200, 117, 0.08);
  border-radius: 18px;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.slide-card-wrap:hover .card-border {
  border-color: rgba(230, 200, 117, 0.2);
}

/* Slide Card Left Column */
.card-left-col {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Slide Card Right Column */
.card-right-col {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Card Header inside Left Column */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(230, 200, 117, 0.12);
}

.volume-tag {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--gold-primary);
  border: 1px solid rgba(230, 200, 117, 0.35);
  padding: 3px 12px;
  border-radius: 12px;
  background: rgba(230, 200, 117, 0.06);
  letter-spacing: 0.08em;
  font-weight: 500;
}

.card-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-stamp-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  width: 22px;
  height: 22px;
}

.card-stamp-btn:hover {
  color: var(--gold-primary);
  transform: scale(1.15);
}

.card-stamp-btn.active {
  color: var(--gold-primary);
  filter: drop-shadow(0 0 4px var(--gold-primary));
}

.card-stamp-btn svg {
  width: 18px;
  height: 18px;
}

/* Metadata Center */
.card-meta-center {
  text-align: center;
  margin-top: 5px;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(230, 200, 117, 0.05);
  border: 1px dashed rgba(230, 200, 117, 0.25);
  color: var(--gold-primary);
  transition: var(--transition-smooth);
}

.card-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 5px;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  font-style: italic;
  padding: 0 5px;
}

.card-divider {
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-secondary), transparent);
  margin: 10px auto;
}

/* Quote/Highlight Box directly inside Card */
.card-quote-block {
  background: var(--bg-inner-card);
  border: 1px solid rgba(230, 200, 117, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
  text-align: justify;
}

.card-quote-block::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: rgba(230, 200, 117, 0.08);
  position: absolute;
  top: -12px;
  left: 6px;
  line-height: 1;
}

.card-quote-text {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--gold-light);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Action Controls at Card Bottom-Left */
.card-left-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(230, 200, 117, 0.12);
  padding-top: 8px;
  margin-top: auto;
}

.card-footer-tip {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.card-footer-tip svg {
  width: 12px;
  height: 12px;
  animation: bounceSlow 1.8s infinite ease-in-out;
}

.card-share-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  width: 22px;
  height: 22px;
}

.card-share-btn:hover {
  color: var(--gold-primary);
  transform: translateY(-2px);
}

.card-share-btn svg {
  width: 18px;
  height: 18px;
}

/* Card Right Column scroll area content details */
.card-right-col::-webkit-scrollbar {
  width: 3px;
}

.card-right-col::-webkit-scrollbar-track {
  background: transparent;
}

.card-right-col::-webkit-scrollbar-thumb {
  background: rgba(230, 200, 117, 0.2);
  border-radius: 1.5px;
}

.card-right-col:hover::-webkit-scrollbar-thumb {
  background: rgba(230, 200, 117, 0.4);
}

/* Story Full Body text inside Card */
.card-story-body {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: rgba(240, 242, 245, 0.92);
  line-height: 1.95;
  text-align: justify;
  letter-spacing: 0.03em;
}

.card-story-body p {
  margin-bottom: 15px;
  text-indent: 2em;
}

/* Drop Cap on first letter */
.card-story-body p:first-of-type {
  text-indent: 0;
}

.card-story-body p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold-primary);
  float: left;
  line-height: 0.9;
  padding-right: 6px;
  padding-top: 2px;
  text-shadow: 0 0 10px var(--gold-glow);
}

.card-story-body strong {
  color: var(--gold-light);
  font-weight: 600;
  border-bottom: 1px dashed rgba(230, 200, 117, 0.35);
  padding-bottom: 1px;
}

/* Card Concluding Block */
.card-conclude-block {
  margin-top: 25px;
  border-top: 1px solid rgba(230, 200, 117, 0.12);
  padding-top: 15px;
  text-align: center;
  position: relative;
}

.card-conclude-block::after {
  content: '❖';
  color: var(--gold-secondary);
  font-size: 0.6rem;
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  background: #111419;
  padding: 0 8px;
}

.card-conclude-text {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--gold-primary);
  line-height: 1.6;
  font-style: italic;
  max-width: 95%;
  margin: 0 auto;
}

.card-conclude-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.card-tag {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Mobile & Desktop Two-Column Adaptability Grid */
@media (max-width: 767px) {
  .story-slide {
    padding-top: 75px;
    padding-bottom: 50px;
  }
  .slide-card-wrap {
    flex-direction: column;
    gap: 12px;
  }
  .card-left-col {
    flex-shrink: 0;
  }
  .card-right-col {
    margin-top: 4px;
    border-top: 1px dashed rgba(230, 200, 117, 0.08);
    padding-top: 10px;
  }
}

@media (min-width: 768px) {
  :root {
    --card-width: 80vw;
    --card-max-width: 880px;
    --card-height: 75vh;
    --card-max-height: 580px;
  }

  .story-slide {
    padding-top: 80px;
    padding-bottom: 50px;
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .slide-card-wrap {
    flex-direction: row;
    gap: 24px;
    padding: 24px;
  }

  .card-left-col {
    width: 38%;
    border-right: 1px solid rgba(230, 200, 117, 0.12);
    padding-right: 24px;
    height: 100%;
  }

  .card-right-col {
    width: 62%;
    height: 100%;
    margin: 0;
  }

  .card-title {
    font-size: 1.45rem;
  }

  .card-quote-block {
    margin-top: 10px;
    padding: 14px;
  }

  .card-story-body {
    font-size: 0.98rem;
    line-height: 2;
  }
}

/* Bottom Controls (Clean and Minimal Floating Footer Overlay) */
.bottom-controls {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px 20px 20px;
  z-index: 100;
  animation: fadeInUp 0.8s ease;
  background: linear-gradient(0deg, var(--bg-primary) 60%, rgba(10,11,13,0.8) 85%, transparent);
}

.footer-left-wrap {
  display: flex;
  align-items: center;
}

.footer-brand-tag {
  border: 1px solid var(--gold-secondary);
  background: rgba(230, 200, 117, 0.05);
  padding: 3px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px var(--gold-glow);
}

.footer-brand-tag span {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
}

.footer-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-primary);
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.footer-tip svg {
  width: 14px;
  height: 14px;
  animation: bounceSlow 1.8s infinite ease-in-out;
}

/* Drawer / Index Modal overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 7, 9, 0.85);
  backdrop-filter: blur(15px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  width: 100%;
  max-width: 600px;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(230, 200, 117, 0.25);
  border-radius: 30px 30px 0 0;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -15px 40px rgba(0,0,0,0.8);
}

.drawer-overlay.active .drawer-content {
  transform: translate3d(0, 0, 0);
}

.drawer-header {
  padding: 24px 24px 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.drawer-header h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  background: rgba(230, 200, 117, 0.15);
  color: var(--gold-primary);
}

.drawer-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 15px 24px 40px 24px;
}

.drawer-vol-group {
  margin-bottom: 25px;
}

.drawer-vol-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--gold-secondary);
  letter-spacing: 0.15em;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(230, 200, 117, 0.15);
  margin-bottom: 10px;
}

.drawer-item-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.03);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.drawer-item:hover {
  background: rgba(230, 200, 117, 0.05);
  border-color: rgba(230, 200, 117, 0.2);
}

.drawer-item.active {
  background: linear-gradient(90deg, rgba(230, 200, 117, 0.08), transparent);
  border-color: var(--gold-primary);
}

.drawer-item-num {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold-primary);
  width: 32px;
  font-weight: 600;
}

.drawer-item-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-item-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.drawer-item:hover .drawer-item-title {
  color: var(--gold-primary);
}

.drawer-item-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.drawer-item-badge {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 10px;
}

.drawer-item.active .drawer-item-badge {
  background: rgba(230, 200, 117, 0.15);
  color: var(--gold-primary);
}

/* Share modal details */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 7, 9, 0.9);
  backdrop-filter: blur(15px);
  z-index: 6000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.share-modal.active {
  opacity: 1;
  visibility: visible;
}

.share-card-container {
  width: 100%;
  max-width: 350px;
  background: linear-gradient(135deg, #161a20, #0c0f12);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  position: relative;
  text-align: center;
  overflow: hidden;
}

.share-card-border {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px dashed rgba(230, 200, 117, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

.share-card-header {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  margin-bottom: 25px;
}

.share-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 20px;
}

.share-card-quote {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--gold-light);
  background: rgba(0,0,0,0.3);
  padding: 15px;
  border-radius: 10px;
  border-left: 2.5px solid var(--gold-secondary);
  text-align: justify;
  margin-bottom: 30px;
}

.share-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(230, 200, 117, 0.15);
  padding-top: 20px;
}

.share-qr-placeholder {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(230, 200, 117, 0.3);
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.share-qr-placeholder svg {
  width: 100%;
  height: 100%;
  color: #0c0f12;
}

.share-source-info {
  text-align: right;
}

.share-source-info h5 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-main);
  letter-spacing: 0.1em;
}

.share-source-info p {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.share-modal-close {
  margin-top: 30px;
  background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
  color: var(--bg-primary);
  border: none;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 10px 30px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 15px var(--gold-glow);
  transition: var(--transition-smooth);
}

.share-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--gold-primary);
}

/* Animations Definition */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseGold {
  0% {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 10px var(--gold-glow);
  }
  50% {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 22px rgba(230, 200, 117, 0.6);
  }
  100% {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 10px var(--gold-glow);
  }
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* Responsive Grid Adjustments */
@media (max-height: 620px) {
  .portal-title-vertical {
    font-size: 2.8rem;
    padding: 10px 8px;
    margin-bottom: 12px;
  }
  .portal-subtitle {
    font-size: 0.95rem;
  }
}
