:root {
  --bg-color: #08090b;
  --card-bg: rgba(14, 16, 21, 0.88);
  --border-color: #9d5e0f;
  --border-focus: #f3bf05;
  
  --electric-yellow: #f3bf05;
  --warning-amber: #e09f3e;
  
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Newsreader', serif;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.2px;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

#lightning-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.bg-specter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150vw;
  height: 150vh;
  
  background: url('skull.png') no-repeat center center;
  background-size: contain;

  /* 
    using this to lock the visible/masked area strictly to the center eye sockets and mouth
  */
  -webkit-mask-image: radial-gradient(ellipse 20% 28% at 50% 43%, black 15%, rgba(0, 0, 0, 0.4) 45%, transparent 70%);
  mask-image: radial-gradient(ellipse 20% 28% at 50% 43%, black 15%, rgba(0, 0, 0, 0.4) 45%, transparent 70%);
  
  opacity: 0.22;

  /* 
    imo not the greatest way to do this by just tinkering, but 
    brightness(0.9) crushes the gray/black noise out of the blend for the image,
    while contrast(220%) and saturate(300%) makes the 'face' pop out a lot more
  */
  filter: brightness(0.9) contrast(300%) saturate(220%);
  mix-blend-mode: screen;
  
  z-index: 0;
  pointer-events: none;
}

.dossier-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 120px 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* Hero Header */
.hero-section {
  text-align: center;
  padding: 20px 0 10px 0;
}

.hazard-badge {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--warning-amber);
  background: rgba(224, 159, 62, 0.08);
  border: 1px solid rgba(224, 159, 62, 0.35);
  padding: 6px 16px;
  margin-bottom: 24px;
}

.character-title-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 6px 0;
}

.seven-logo {
  width: clamp(240px, 45vw, 420px);
  height: auto;
  display: block;
  animation: arcFlicker 4s infinite ease-in-out;
  transition: filter 0.3s ease;
}

.seven-logo:hover {
  filter: 
    drop-shadow(0 0 12px rgba(255, 250, 200, 1))
    drop-shadow(0 0 35px rgba(243, 191, 5, 0.85))
    drop-shadow(0 0 60px rgba(224, 159, 62, 0.5));
}

@keyframes arcFlicker {
  0%, 100% {
    filter: 
      drop-shadow(0 0 6px rgba(243, 191, 5, 0.85))
      drop-shadow(0 0 20px rgba(243, 191, 5, 0.55))
      drop-shadow(0 0 40px rgba(224, 159, 62, 0.25));
    opacity: 0.95;
  }
  50% {
    filter: 
      drop-shadow(0 0 10px rgba(255, 250, 200, 1))
      drop-shadow(0 0 30px rgba(243, 191, 5, 0.75))
      drop-shadow(0 0 55px rgba(224, 159, 62, 0.45));
    opacity: 1;
  }
  72% {
    filter: 
      drop-shadow(0 0 4px rgba(243, 191, 5, 0.6))
      drop-shadow(0 0 14px rgba(243, 191, 5, 0.35));
    opacity: 0.88;
  }
  74% {
    filter: 
      drop-shadow(0 0 11px rgba(255, 250, 200, 1))
      drop-shadow(0 0 32px rgba(243, 191, 5, 0.8));
    opacity: 1;
  }
  76% {
    filter: 
      drop-shadow(0 0 5px rgba(243, 191, 5, 0.7))
      drop-shadow(0 0 16px rgba(243, 191, 5, 0.4));
    opacity: 0.9;
  }
}

.epithet {
  font-family: 'Special Elite', monospace;
  font-size: 1.15rem;
  letter-spacing: 3px;
  color: var(--electric-yellow);
  margin-top: 4px;
}

.divider-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  margin: 20px auto;
  max-width: 450px;
}

.header-quote {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 22px;
}

.card-tag {
  font-family: 'Special Elite', monospace;
  font-size: 0.82rem;
  color: var(--warning-amber);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.card h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.3rem;
  letter-spacing: 2.5px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
}

.grid-two-col {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 700px) {
  .grid-two-col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.profile-details ul {
  list-style: none;
  font-family: 'Special Elite', monospace;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-details strong {
  color: var(--electric-yellow);
  letter-spacing: 0.5px;
}

.charges-dropdown summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.charges-dropdown summary::-webkit-details-marker {
  display: none;
}

.expand-arrow {
  display: inline-block;
  font-size: 0.65rem;
  color: var(--electric-yellow);
  margin-left: 6px;
  transition: transform 0.2s ease;
  vertical-align: middle;
}

.charges-dropdown[open] .expand-arrow {
  transform: rotate(180deg);
}

.charges-full-list {
  list-style: none;
  margin-top: 10px;
  padding-left: 14px;
  border-left: 1px solid rgba(243, 191, 5, 0.35);
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #d1d5db;
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  line-height: 1.45;
}

.charges-full-list strong {
  color: #fff;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
}

.warning-callout {
  background: rgba(224, 159, 62, 0.04);
  border-left: 2px solid var(--warning-amber);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.warning-callout h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--warning-amber);
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  line-height: 1;
}

.warning-callout p {
  font-family: 'Newsreader', serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #d1d5db;
}

.narrative-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.narrative-body p {
  line-height: 1.8;
  color: #d1d5db;
  font-size: 1.05rem;
}

.narrative-body .record-meta {
  font-family: 'Special Elite', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #9ca3af;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.narrative-body .record-meta strong {
  color: var(--electric-yellow);
}

.narrative-body .record-status {
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
}

.narrative-body .record-status strong {
  font-family: 'Special Elite', monospace;
  color: var(--warning-amber);
}

.abilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.ability-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ability-node h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  color: var(--electric-yellow);
  line-height: 1;
}

.ability-node p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.ability-node.ultimate {
  border-color: rgba(243, 191, 5, 0.45);
  background: rgba(243, 191, 5, 0.05);
}

.ability-node.ultimate h4 {
  color: #fff;
  text-shadow: 0 0 10px rgba(243, 191, 5, 0.6);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sidebar-drawer {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(100%);
  width: min(340px, 85vw);
  background: rgba(12, 14, 18, 0.94);
  border: 1px solid var(--border-color);
  border-right: none;
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
}

.sidebar-drawer.open {
  transform: translateY(-50%) translateX(0);
}

.drawer-toggle {
  position: absolute;
  left: -38px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  background: rgba(14, 16, 21, 0.95);
  border: 1px solid var(--border-color);
  border-right: none;
  color: var(--warning-amber);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}

.drawer-toggle .toggle-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: var(--electric-yellow);
}

.sidebar-drawer.open .drawer-toggle .toggle-icon {
  transform: rotate(180deg);
}

.drawer-toggle .toggle-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.drawer-content {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 80vh;
  overflow-y: auto;
}

.drawer-header h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: 1.5px;
  line-height: 1.1;
  margin-top: 4px;
}

.drawer-section h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1.2px;
  color: var(--warning-amber);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-bottom: 8px;
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Special Elite', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #d1d5db;
}

.drawer-list strong {
  color: var(--electric-yellow);
}

.drawer-prose {
  font-family: 'Newsreader', serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #9ca3af;
}

.meta-stamp {
  font-family: 'Special Elite', monospace;
  font-size: 0.75rem;
  color: #ef4444;
  border: 1px dashed rgba(239, 68, 68, 0.4);
  padding: 6px;
  text-align: center;
  letter-spacing: 1px;
}