:root {
  --bg-color: #010103;
  --text-color: #F8F5F2;
  --text-dim: #A8A39D;
  --accent-gold: #D4AF37;
  --accent-bronze: #B08D57;
  --accent-rose: #B76E79;
  --accent-turquoise: #115E59;
  --accent-lilac: #4C2882;
  --accent-silver: #E5E4E2;
  --glass-bg: rgba(17, 94, 89, 0.04);
  --glass-border: rgba(212, 175, 55, 0.12);
  --font-title: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --cyan-core: #00f0ff;
  --orange-core: #ff6b00;
  --emerald-core: #10b981;
  --gold-core: #ffd700;
  --font-mono: 'Space Grotesk', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: initial;
}

body {
  width: 100%;
  min-height: 100dvh;
  overflow-y: hidden;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
  pointer-events: auto; /* Allow mouse interaction */
}

/* Heads-Up Display (HUD) */
.hud-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  pointer-events: none;
  font-family: var(--font-title);
  letter-spacing: 0.15em;
  font-size: 0.75rem;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  pointer-events: auto;
}

.hud-title {
  font-weight: 700;
  color: var(--text-color);
}

.hud-divider {
  margin: 0 16px;
  color: rgba(255, 255, 255, 0.2);
}

.hud-chapter-name {
  color: var(--accent-bronze);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.metrics {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 10px 20px;
  border-radius: 4px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-right: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.metric-label {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.metric-value {
  color: var(--accent-gold);
  font-weight: 700;
  min-width: 24px;
}

.metric-divider {
  color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   SOLARIS ZERO-COST JARVIS TELEMETRY HUD
   ========================================================================== */
.hud-center-jarvis {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  flex: 0 1 auto;
}

.hero-jarvis-hud {
  display: grid;
  grid-template-columns: minmax(170px, 200px) auto minmax(170px, 200px);
  gap: 12px;
  align-items: center;
  box-sizing: border-box;
}

.jarvis-hud-panel {
  background: linear-gradient(135deg, rgba(8, 12, 20, 0.88) 0%, rgba(4, 7, 12, 0.96) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 8px;
  padding: 6px 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.jarvis-hud-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 3px; height: 100%;
  background: var(--cyan-core);
  box-shadow: 0 0 8px var(--cyan-core);
}

.jarvis-hud-panel.jarvis-right::before {
  left: auto; right: 0;
  background: var(--orange-core);
  box-shadow: 0 0 8px var(--orange-core);
}

.jarvis-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 3px;
}

.j-title {
  color: #ffffff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.j-status-blink {
  color: var(--cyan-core);
  font-weight: 700;
  animation: jRadarPulse 1.2s infinite ease-in-out;
}

@keyframes jRadarPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; text-shadow: 0 0 8px var(--cyan-core); }
}

.jarvis-matrix-stream {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #38bdf8;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.12);
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.35);
  max-height: 38px;
  overflow: hidden;
  white-space: nowrap;
}

.jarvis-vu-row {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 9px;
}

.j-vu-bar {
  flex: 1;
  background: rgba(0, 240, 255, 0.25);
  border-radius: 2px;
  height: 25%;
  transition: height 0.12s ease;
}

.j-vu-bar:nth-child(1) { animation: vuAnim1 0.7s infinite alternate; }
.j-vu-bar:nth-child(2) { animation: vuAnim2 0.9s infinite alternate; }
.j-vu-bar:nth-child(3) { animation: vuAnim3 0.6s infinite alternate; }
.j-vu-bar:nth-child(4) { animation: vuAnim2 0.8s infinite alternate; }
.j-vu-bar:nth-child(5) { animation: vuAnim1 1.1s infinite alternate; }
.j-vu-bar:nth-child(6) { animation: vuAnim3 0.75s infinite alternate; }

@keyframes vuAnim1 { 0% { height: 20%; background: #00f0ff; } 100% { height: 85%; background: #38bdf8; } }
@keyframes vuAnim2 { 0% { height: 35%; background: #38bdf8; } 100% { height: 95%; background: #ff6b00; } }
@keyframes vuAnim3 { 0% { height: 15%; background: #00f0ff; } 100% { height: 75%; background: #10b981; } }

/* Center Arc Reactor / Reticle */
.jarvis-hud-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(8, 12, 20, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 8px;
  padding: 6px 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(0, 240, 255, 0.05);
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.jarvis-hud-center:hover {
  transform: translateY(-1px);
  border-color: var(--cyan-core);
}

.jarvis-reticle-ring {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.reticle-dial {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 240, 255, 0.45);
}

.dial-outer {
  animation: jSpinClockwise 12s linear infinite;
}

.dial-inner {
  inset: 5px;
  border: 1px dotted rgba(255, 107, 0, 0.65);
  animation: jSpinCounterClockwise 8s linear infinite;
}

.reticle-crosshair {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px #ffffff;
}

.reticle-core-pulse {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--cyan-core);
  box-shadow: 0 0 10px var(--cyan-core);
  animation: jCorePulse 1.2s infinite alternate ease-in-out;
  will-change: transform;
}

@keyframes jSpinClockwise { to { transform: rotate(360deg); } }
@keyframes jSpinCounterClockwise { to { transform: rotate(-360deg); } }
@keyframes jCorePulse { 0% { transform: scale(0.75); opacity: 0.7; } 100% { transform: scale(1.25); opacity: 1; } }

.jarvis-hud-caption {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 0.60rem;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-align: left;
}

.jarvis-hud-caption strong {
  color: #ffffff;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

/* Right Radar Scope */
.jarvis-radar-scope {
  position: relative;
  width: 100%;
  height: 20px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, rgba(0, 0, 0, 0.65) 100%);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.radar-sweep-line {
  position: absolute;
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, #00f0ff, transparent);
  box-shadow: 0 0 6px #00f0ff;
  animation: jRadarSweep 2.5s infinite linear;
}

@keyframes jRadarSweep {
  0% { left: 0%; opacity: 0.2; }
  50% { left: 95%; opacity: 1; }
  100% { left: 0%; opacity: 0.2; }
}

.radar-blip {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 5px #10b981;
}

.blip-1 { top: 3px; left: 30%; }
.blip-2 { top: 12px; left: 70%; }
.blip-3 { top: 8px; left: 52%; background: #ffd700; box-shadow: 0 0 5px #ffd700; }

.jarvis-telemetry-stats {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: #94a3b8;
  font-weight: 700;
  padding-top: 3px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.j-metric-badge {
  background: rgba(0, 240, 255, 0.12);
  color: var(--cyan-core);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.56rem;
  font-weight: 700;
}

@media (max-width: 1350px) {
  .hero-jarvis-hud {
    grid-template-columns: auto;
  }
  .jarvis-hud-panel.jarvis-left,
  .jarvis-hud-panel.jarvis-right {
    display: none;
  }
}

@media (max-width: 860px) {
  .hud-center-jarvis {
    display: none;
  }
}

.hud-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.hud-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(0, 243, 255, 0.35);
  transform: scale(1.05);
}

/* Scroll Container & Layout */
.scroll-container {
  position: relative;
  width: 100%;
  z-index: 2;
  pointer-events: none; /* Let canvas capture mouse hover */
}

.chapter-section, .vortex-section {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  pointer-events: none;
}

/* Intro Section Styles */
.intro-content-wrapper {
  position: absolute;
  bottom: 8dvh;
  right: 6vw;
  text-align: right;
  pointer-events: auto;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.intro-subtitle {
  font-family: var(--font-title);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  letter-spacing: 0.3em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-weight: 400;
  max-width: 280px;
  line-height: 1.5;
}

.scroll-down-btn {
  font-size: 0.7rem;
  padding: 12px 28px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: var(--text-color);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
}

/* Enable pointer events on standard layout containers */
.content-wrapper {
  pointer-events: auto;
  max-width: 600px;
  position: relative;
}

.central-hero {
  justify-content: center;
  align-items: center;
}

.central-hero .content-wrapper {
  max-width: 900px;
}

.left-aligned {
  justify-content: flex-start;
}

.right-aligned {
  justify-content: flex-end;
}

.right-aligned .content-wrapper {
  text-align: right;
}

.right-aligned .main-statement {
  border-left: none;
  border-right: 2px solid var(--accent-gold);
  padding-left: 0;
  padding-right: 20px;
}

.epilogue-hero {
  justify-content: center;
  align-items: center;
}

.epilogue-hero .content-wrapper {
  max-width: 700px;
}

/* Typography Styles */
h1.glitch-title {
  font-family: var(--font-title);
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  position: relative;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
  animation: float-slow 6s ease-in-out infinite;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
}

h2 {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.station-tag {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--accent-gold);
  margin-bottom: 16px;
  font-weight: 700;
}

.main-statement {
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 20px;
  color: var(--text-color);
  border-left: 2px solid var(--accent-gold);
  padding-left: 20px;
}

.details {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.7;
}

/* Vortex Style Elements */
.vortex-section {
  justify-content: center;
  height: 80vh;
}

.vortex-content {
  max-width: 750px;
  text-align: center;
}

.vortex-quote {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0 40px;
}

.vortex-quote::before, .vortex-quote::after {
  content: '"';
  font-size: 4rem;
  color: var(--accent-gold);
  position: absolute;
  opacity: 0.3;
  line-height: 1;
}

.vortex-quote::before {
  left: 0;
  top: -20px;
}

.vortex-quote::after {
  right: 0;
  bottom: -40px;
}

/* Call-to-Action Orb styling - Award Winning Cosmic Beacon Button */
.epilogue-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
}

.epilogue-content h2 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 180, 50, 0.35);
  margin-bottom: 12px;
}

.epilogue-content .main-statement {
  border-left: none;
  border-right: none;
  padding-left: 0;
  padding-right: 0;
  font-family: var(--font-title);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 215, 0, 0.5);
}

.epilogue-content .details {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  line-height: 1.65;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
  margin-bottom: 10px;
}

.orb-cta-trigger {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  padding: 15px 36px;
  background: rgba(12, 10, 6, 0.72);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 170, 0, 0.22), inset 0 0 15px rgba(255, 200, 50, 0.12);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.orb-cta-trigger:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #ffd700;
  box-shadow: 0 6px 35px rgba(0, 0, 0, 0.7), 0 0 45px rgba(255, 180, 0, 0.5), inset 0 0 25px rgba(255, 215, 0, 0.25);
}

.cta-pulse-ring {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd700;
  position: relative;
  display: inline-block;
  box-shadow: 0 0 12px #ffd700, 0 0 24px #ff9900;
  animation: pulse-beacon 1.8s infinite ease-in-out;
  transition: transform 0.4s ease;
}

@keyframes pulse-beacon {
  0%, 100% {
    transform: scale(0.9);
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ff9900;
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 18px #ffd700, 0 0 35px #ff7700;
  }
}

.cta-label {
  font-family: var(--font-title);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  transition: color 0.3s ease;
}

.orb-cta-trigger:hover .cta-label {
  color: var(--accent-gold);
}

/* Mouse Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.mouse-icon {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-dim);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::before {
  content: '';
  width: 4px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.6s infinite ease-in-out;
}

.scroll-text {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-left: 0.15em;
  color: var(--text-dim);
}

/* Slide-in Contact Form Modal */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-window {
  position: absolute;
  top: 0;
  right: -550px;
  width: 100%;
  max-width: 500px;
  height: 100%;
  background: var(--glass-bg);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  padding: 60px 40px;
  transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.contact-modal.active .modal-window {
  right: 0;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--accent-gold);
}

.modal-content h3 {
  font-family: var(--font-title);
  font-size: 2.25rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.modal-content p {
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* Custom Input Fields */
.input-group {
  position: relative;
  margin-bottom: 30px;
}

.input-group input, .input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0;
  color: var(--text-color);
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input:focus, .input-group textarea:focus {
  border-color: var(--accent-gold);
}

.input-group label {
  position: absolute;
  top: 12px;
  left: 0;
  color: var(--text-dim);
  pointer-events: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -14px;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.submit-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.submit-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.55);
}

/* Animations */
@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(0, 243, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
  }
}

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

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, 15px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  h1.glitch-title {
    font-size: 3rem;
  }
  .subtitle {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }
  h2 {
    font-size: 1.85rem;
  }
  .main-statement {
    font-size: 1.15rem;
  }
  .chapter-section {
    padding: 0 6%;
    justify-content: center;
  }
  .content-wrapper {
    max-width: 100%;
    background: rgba(1, 1, 3, 0.65);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .hud-panel {
    padding: 16px 20px;
  }
  .hud-divider, .hud-chapter-name {
    display: none;
  }
  .modal-window {
    max-width: 100%;
    padding: 40px 24px;
  }

}

/* Enter Overlay & Typewriter Init States */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #010106;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

.enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-content {
  text-align: center;
  max-width: 500px;
  padding: 20px;
}

.hud-tag {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 12px;
}

.enter-title {
  font-family: var(--font-title);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
  margin-bottom: 16px;
}

.enter-desc {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.enter-btn {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: 2px solid var(--accent-gold);
  padding: 14px 45px;
  letter-spacing: 0.25em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.enter-btn:hover {
  background: var(--accent-gold);
  color: #010106;
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.65);
  transform: translateY(-2px);
}

.glitch-title, .subtitle {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

#earth-statement {
  opacity: 1;
  visibility: visible;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Custom Cursor */
body { cursor: none; }
a, button, .clickable { cursor: none; }
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 999999;
}

/* Accessibility: Text Shadow for Readability over Animations */
.submit-btn {
  width: 100%;
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.submit-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-color);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.55);
}

/* Animations */
@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(0, 243, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 243, 255, 0);
  }
}

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

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, 15px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  h1.glitch-title {
    font-size: 3rem;
  }
  .subtitle {
    font-size: 1rem;
    letter-spacing: 0.15em;
  }
  h2 {
    font-size: 1.85rem;
  }
  .main-statement {
    font-size: 1.15rem;
  }
  .chapter-section {
    padding: 0 6%;
    justify-content: center;
  }
  .content-wrapper {
    max-width: 100%;
    background: rgba(1, 1, 3, 0.65);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .hud-panel {
    padding: 16px 20px;
  }
  .hud-divider, .hud-chapter-name {
    display: none;
  }
  .modal-window {
    max-width: 100%;
    padding: 40px 24px;
  }

}

/* Enter Overlay & Typewriter Init States */
.enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  background: #010106;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}

.enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-content {
  text-align: center;
  max-width: 500px;
  padding: 20px;
}

.hud-tag {
  font-family: var(--font-title);
  font-size: 0.8rem;
  color: var(--accent-gold);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 12px;
}

.enter-title {
  font-family: var(--font-title);
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 243, 255, 0.15);
  margin-bottom: 16px;
}

.enter-desc {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

.enter-btn {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: transparent;
  border: 2px solid var(--accent-gold);
  padding: 14px 45px;
  letter-spacing: 0.25em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.enter-btn:hover {
  background: var(--accent-gold);
  color: #010106;
  box-shadow: 0 0 35px rgba(0, 243, 255, 0.65);
  transform: translateY(-2px);
}

.glitch-title, .subtitle, #earth-statement {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* Custom Cursor */
body { cursor: none; }
a, button, .clickable { cursor: none; }
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  z-index: 999999;
}

/* Accessibility: Text Shadow for Readability over Animations */
.main-statement, .hud-chapter-name, .metric-value, .metric-label, .chapter-number, .chapter-title, .btn-primary, .body-text, .scroll-text, .hud-tag, h2, h3, p, span {
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}




/* ==========================================================================
   COSMIC CODE — INTRO / RESPONSIVE MICRO-POLISH 2026-10-03
   ========================================================================== */
.enter-content {
  width: min(92vw, 540px);
}

.enter-title {
  font-size: clamp(2.2rem, 5.2vw, 3.25rem);
  letter-spacing: clamp(0.10em, 0.9vw, 0.15em);
  text-wrap: balance;
}

.enter-desc,
.intro-subtitle {
  text-wrap: balance;
}

#webgl-canvas {
  touch-action: pan-y pinch-zoom;
}

@media (max-width: 1100px) {
  .hud-panel {
    padding-inline: clamp(18px, 3vw, 30px);
  }

  .chapter-section,
  .vortex-section {
    padding-inline: clamp(24px, 6vw, 7%);
  }
}

@media (max-width: 768px) {
  .enter-content {
    width: min(92vw, 460px);
    padding: 18px;
  }

  .enter-title {
    font-size: clamp(2rem, 9.2vw, 2.8rem);
    letter-spacing: 0.09em;
    margin-bottom: 14px;
  }

  .enter-desc {
    max-width: 34ch;
    margin-inline: auto;
    margin-bottom: 30px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .enter-btn {
    min-height: 48px;
    padding: 13px 26px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
  }

  .content-wrapper {
    background: rgba(1, 1, 3, 0.78);
    padding: clamp(20px, 5.5vw, 26px);
    border-radius: 14px;
    backdrop-filter: blur(10px) saturate(0.82);
    -webkit-backdrop-filter: blur(10px) saturate(0.82);
    border-color: rgba(212, 175, 55, 0.10);
  }

  .intro-content-wrapper {
    right: 6vw;
    bottom: max(6dvh, 28px);
    max-width: 88vw;
  }
}

@media (pointer: coarse), (hover: none) {
  body,
  a,
  button,
  .clickable {
    cursor: auto !important;
  }

  #cursor-trail {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter-overlay,
  .enter-btn,
  .hud-btn {
    transition-duration: 0.15s !important;
  }
}


/* ==========================================================================
   COSMIC CODE — PERFORMANCE / COMPOSITING MICRO-POLISH 2026-10-03
   ========================================================================== */
@media (pointer: coarse), (hover: none) {
  .metrics,
  .hud-btn,
  .scroll-down-btn {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .content-wrapper {
    backdrop-filter: blur(6px) saturate(0.86);
    -webkit-backdrop-filter: blur(6px) saturate(0.86);
  }
}

@media (max-width: 768px) {
  .metrics,
  .hud-btn {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .content-wrapper {
    background: rgba(1, 1, 3, 0.82);
    backdrop-filter: blur(5px) saturate(0.82);
    -webkit-backdrop-filter: blur(5px) saturate(0.82);
  }
}

.enter-btn,
.hud-btn,
.submit-btn {
  transition-property: transform, opacity, color, background-color, border-color, box-shadow;
}


/* ==========================================================================
   COSMIC CODE — CHRONOLOGICAL FINAL PASS / INTRO + X
   ========================================================================== */
.enter-overlay {
  background:
    radial-gradient(circle at 50% 46%, rgba(0, 243, 255, 0.045), transparent 27%),
    radial-gradient(circle at 35% 68%, rgba(212, 175, 55, 0.028), transparent 24%),
    #010106;
}

.enter-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.92%, rgba(255,255,255,0.025) 50%, transparent 50.08%),
    linear-gradient(transparent 49.92%, rgba(255,255,255,0.018) 50%, transparent 50.08%);
  background-size: min(22vw, 280px) min(22vw, 280px);
  mask-image: radial-gradient(circle at center, black, transparent 58%);
  opacity: 0.32;
}

.enter-content {
  position: relative;
  z-index: 1;
}

.enter-title {
  text-shadow:
    0 0 24px rgba(0, 243, 255, 0.08),
    0 1px 0 rgba(255,255,255,0.08);
}

.enter-btn {
  border-width: 1px;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.10);
}

.enter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.12), transparent);
  transition: transform 0.65s cubic-bezier(.2,.7,.2,1);
}

.enter-btn:hover::before {
  transform: translateX(105%);
}

#chapter-x .content-wrapper {
  isolation: isolate;
}

#chapter-x .content-wrapper::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -42px -90px -42px -7vw;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(1, 1, 3, 0.94) 0%,
    rgba(1, 1, 3, 0.80) 46%,
    rgba(1, 1, 3, 0.34) 76%,
    rgba(1, 1, 3, 0) 100%
  );
  filter: blur(0.001px);
}

@media (max-width: 1100px) {
  #chapter-x .content-wrapper::before {
    inset: -32px -50px -32px -5vw;
  }
}

@media (max-width: 768px) {
  .enter-overlay::before {
    background-size: 150px 150px;
    opacity: 0.22;
  }

  #chapter-x .content-wrapper::before {
    display: none;
  }
}


/* ==========================================================================
   COSMIC CODE — CHRONOLOGICAL FINAL PASS / VORTEX + NEPTUNE
   ========================================================================== */
.vortex-content {
  max-width: min(760px, 82vw);
}

.vortex-quote {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.46;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

#chapter-neptune .content-wrapper {
  isolation: isolate;
}

#chapter-neptune .content-wrapper::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -38px -72px -38px -6vw;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(1, 1, 3, 0.94) 0%,
    rgba(1, 4, 10, 0.78) 52%,
    rgba(1, 8, 18, 0.24) 78%,
    transparent 100%
  );
}

@media (max-width: 768px) {
  .vortex-section {
    min-height: 58dvh;
    height: auto;
    padding-block: 12dvh;
  }

  .vortex-section .vortex-content {
    width: min(88vw, 500px);
    max-width: 88vw;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .vortex-quote {
    font-size: clamp(1.02rem, 5.1vw, 1.3rem);
    line-height: 1.52;
    padding: 0 22px;
    color: rgba(248, 245, 242, 0.82);
  }

  .vortex-quote::before,
  .vortex-quote::after {
    font-size: 2.8rem;
    opacity: 0.22;
  }

  .vortex-quote::before {
    top: -14px;
  }

  .vortex-quote::after {
    bottom: -28px;
  }

  #chapter-neptune .content-wrapper::before {
    display: none;
  }
}


/* ==========================================================================
   COSMIC CODE — STATION COPY SCRIMS (desktop/tablet)
   ========================================================================== */
@media (min-width: 769px) {
  .chapter-section.left-aligned .content-wrapper,
  .chapter-section.right-aligned .content-wrapper {
    isolation: isolate;
  }

  .chapter-section.left-aligned .content-wrapper::before,
  .chapter-section.right-aligned .content-wrapper::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -38px;
    bottom: -38px;
    pointer-events: none;
  }

  .chapter-section.left-aligned .content-wrapper::before {
    left: -7vw;
    right: -80px;
    background: linear-gradient(90deg, rgba(1,1,3,.94), rgba(1,2,7,.76) 54%, transparent 100%);
  }

  .chapter-section.right-aligned .content-wrapper::before {
    right: -7vw;
    left: -80px;
    background: linear-gradient(270deg, rgba(1,1,3,.94), rgba(1,2,7,.76) 54%, transparent 100%);
  }
}


/* ==========================================================================
   COSMIC CODE — CHRONOLOGICAL FINAL PASS / EPILOGUE
   ========================================================================== */
.epilogue-hero {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100dvh;
  padding: 40px 20px;
}

.epilogue-hero .content-wrapper {
  margin: 0 auto !important;
  max-width: min(740px, 92vw) !important;
  padding: 20px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.epilogue-hero h2 {
  font-family: var(--font-title);
  font-size: clamp(2.0rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 14px;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 200, 50, 0.35);
}

.epilogue-hero .main-statement {
  font-family: var(--font-title);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--accent-gold, #ffd700);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.95), 0 0 25px rgba(212, 175, 55, 0.5);
}

.epilogue-hero .details {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  line-height: 1.65;
  color: rgba(248, 245, 242, 0.88);
  max-width: 540px;
  margin: 0 auto 24px auto;
  text-wrap: pretty;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
  .epilogue-hero .content-wrapper {
    width: min(94vw, 480px);
    padding: 16px !important;
  }
}

.chapter-section h2,
.chapter-section p,
.chapter-section .station-tag {
  hyphens: none;
  -webkit-hyphens: none;
}


/* ==========================================================================
   COSMIC CODE — EARTH FINAL VISIBILITY LOCK
   ========================================================================== */
#chapter-earth #earth-statement {
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   COSMIC CODE — SPOTIFY-GRADE AWWWARDS AUDIO PLAYER HUD
   ========================================================================== */
.cosmic-player {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(3, 4, 10, 0.76);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

.cosmic-player:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(212, 175, 55, 0.16);
}

.player-track-info {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.player-track-info:hover {
  background: rgba(255, 255, 255, 0.05);
}

.eq-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 14px;
  height: 15px;
  padding-bottom: 1px;
}

.eq-bar {
  width: 2px;
  height: 3px;
  background: var(--accent-gold, #ffd700);
  border-radius: 1px;
  transition: height 0.08s ease, background-color 0.3s ease;
}

.cosmic-player.is-playing .eq-bar {
  background: #00f3ff;
  box-shadow: 0 0 6px rgba(0, 243, 255, 0.6);
}

.track-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.track-title {
  font-family: var(--font-title);
  font-size: 0.70rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  white-space: nowrap;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-family: var(--font-title);
  font-size: 0.54rem;
  font-weight: 500;
  color: rgba(212, 175, 55, 0.85);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.player-ctrl-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              background-color 0.2s ease;
}

.player-ctrl-btn:hover {
  color: #ffd700;
  border-color: rgba(212, 175, 55, 0.6);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.28);
  transform: scale(1.08);
}

.player-ctrl-btn:active {
  transform: scale(0.94);
}

.play-pause-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.45);
  color: #ffd700;
}

.play-pause-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: #ffd700;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.4);
}

.player-scrubber-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.player-time {
  font-family: var(--font-title);
  font-size: 0.60rem;
  color: rgba(255, 255, 255, 0.52);
  letter-spacing: 0.04em;
  min-width: 27px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.player-scrubber {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: height 0.2s ease, background-color 0.2s ease;
}

.player-scrubber:hover {
  height: 6px;
  background: rgba(255, 255, 255, 0.22);
}

.player-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4af37 0%, #00f3ff 100%);
  border-radius: 2px;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(0, 243, 255, 0.5);
  transition: width 0.1s linear;
}

.playlist-toggle-btn {
  border-radius: 4px;
  width: 28px;
  height: 28px;
}

.playlist-toggle-btn.is-active {
  color: #00f3ff;
  border-color: rgba(0, 243, 255, 0.5);
  background: rgba(0, 243, 255, 0.1);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Spotify-Grade Playlist Drawer */
.playlist-drawer {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: rgba(3, 4, 10, 0.94);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.85), 0 0 28px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  transform-origin: top right;
}

.playlist-drawer.is-open {
  display: flex;
  animation: playlistDrawerIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes playlistDrawerIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.drawer-title {
  font-family: var(--font-title);
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.drawer-badge {
  font-family: var(--font-title);
  font-size: 0.55rem;
  font-weight: 600;
  color: #ffd700;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.1em;
}

.playlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateX(2px);
}

.playlist-item.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.12);
}

.playlist-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.playlist-item-index {
  font-family: var(--font-title);
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
  min-width: 16px;
}

.playlist-item.active .playlist-item-index {
  color: #00f3ff;
}

.playlist-item-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  overflow: hidden;
}

.playlist-item-title {
  font-family: var(--font-title);
  font-size: 0.70rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-item.active .playlist-item-title {
  color: #ffd700;
}

.playlist-item-meta {
  font-family: var(--font-title);
  font-size: 0.54rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.playlist-tag-badge {
  font-size: 0.48rem;
  color: #00f3ff;
  border: 1px solid rgba(0, 243, 255, 0.35);
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
}

.playlist-item-duration {
  font-family: var(--font-title);
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
}

.playlist-item.active .playlist-item-duration {
  color: #ffd700;
}

/* Responsiveness for Compact Screens */
@media (max-width: 960px) {
  .player-scrubber-wrap {
    display: none;
  }
  .cosmic-player {
    gap: 8px;
    padding: 4px 10px;
    margin-right: 10px;
  }
  .track-title {
    max-width: 80px;
  }
}

@media (max-width: 680px) {
  .track-meta {
    display: none;
  }
  .playlist-drawer {
    width: 270px;
    right: -20px;
  }
}
