/* ==========================================================================
   Kiryattf | Sci-Twi Bio-Link Stylesheet
   Palette:
     Dark Indigo: #2a0f4d
     Purple:      #6b2fbf
     Magenta:     #c13fd6
     Pink:        #ff7ad9
   ========================================================================== */

:root {
  --color-indigo-dark: #0d041a;
  --color-indigo: #2a0f4d;
  --color-indigo-light: #3d166d;
  --color-purple: #6b2fbf;
  --color-magenta: #c13fd6;
  --color-pink: #ff7ad9;
  --color-pink-light: #ffa8e8;
  --color-text-primary: #ffffff;
  --color-text-secondary: #e2d2f7;
  --color-text-muted: #a38bbb;

  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --card-radius: 24px;
  --glow-shadow: 0 0 25px rgba(193, 63, 214, 0.45), 0 0 50px rgba(107, 47, 191, 0.25);
  --border-neon: 1px solid rgba(193, 63, 214, 0.35);
}

/* Base Reset & Box Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background-color: var(--color-indigo-dark);
  font-family: var(--font-main);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  user-select: none;
}

/* Custom Selection */
::selection {
  background: var(--color-magenta);
  color: #ffffff;
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 2px solid var(--color-pink);
  outline-offset: 4px;
}

/* ==========================================================================
   Background Stack & Video / Image Fallbacks
   ========================================================================== */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(circle at center, #2a0f4d 0%, #18072e 55%, #0d041a 100%);
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;
  filter: brightness(0.68) contrast(1.06);
  transition: opacity 0.6s ease;
  z-index: 1;
}

#bg-video.active {
  opacity: 1 !important;
}

#bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 1;
}

#bg-image.active {
  opacity: 0.7;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.bg-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(13, 4, 26, 0.15) 30%, rgba(13, 4, 26, 0.5) 75%, rgba(13, 4, 26, 0.85) 100%);
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   Flying Books Layer (Sci-Twi Motif)
   ========================================================================== */
.flying-books-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.flying-book {
  position: absolute;
  color: var(--color-magenta);
  filter: drop-shadow(0 0 10px rgba(193, 63, 214, 0.6));
  opacity: 0.35;
  animation-duration: 24s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.book-svg {
  width: 48px;
  height: 36px;
}

.book-1 {
  top: 15%;
  left: 8%;
  transform: rotate(-14deg);
  animation-name: floatBook1;
}

.book-2 {
  top: 65%;
  left: 12%;
  transform: rotate(18deg);
  animation-name: floatBook2;
  animation-duration: 30s;
  animation-delay: -6s;
}

.book-3 {
  top: 25%;
  right: 10%;
  transform: rotate(12deg);
  animation-name: floatBook3;
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes floatBook1 {

  0%,
  100% {
    transform: translateY(0px) rotate(-14deg) scale(1);
  }

  50% {
    transform: translateY(-35px) rotate(-8deg) scale(1.08);
  }
}

@keyframes floatBook2 {

  0%,
  100% {
    transform: translateY(0px) rotate(18deg) scale(0.95);
  }

  50% {
    transform: translateY(-45px) rotate(24deg) scale(1.04);
  }
}

@keyframes floatBook3 {

  0%,
  100% {
    transform: translateY(0px) rotate(12deg) scale(1.05);
  }

  50% {
    transform: translateY(-40px) rotate(6deg) scale(0.98);
  }
}

/* ==========================================================================
   Magic Seal Container (Rotating Celestial Arcane Circle)
   ========================================================================== */
.magic-seal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%);
  z-index: 6;
  pointer-events: none;
  opacity: 0.22;
  transition: opacity 1s ease;
}

.magic-seal {
  width: 100%;
  height: 100%;
}

.seal-ring.outer-ring {
  transform-origin: 250px 250px;
  animation: spinSeal 120s linear infinite;
}

.seal-ring.middle-ring {
  transform-origin: 250px 250px;
  animation: spinSealCounter 90s linear infinite;
}

.seal-ring.inner-star {
  transform-origin: 250px 250px;
  animation: spinSeal 60s linear infinite;
}

@keyframes spinSeal {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spinSealCounter {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

/* ==========================================================================
   Custom Cursor & Particle Trail
   ========================================================================== */
#trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, transform 0.1s ease-out;
  opacity: 0;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: #ffffff;
  box-shadow: 0 0 10px var(--color-pink), 0 0 20px var(--color-magenta);
}

#cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--color-pink);
  background: radial-gradient(circle, rgba(255, 122, 217, 0.15) 0%, transparent 70%);
  box-shadow: 0 0 15px rgba(255, 122, 217, 0.4);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, transform 0.12s ease-out;
}

body.cursor-active .custom-cursor {
  opacity: 1;
}

body.cursor-hover #cursor-ring {
  width: 48px;
  height: 48px;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 122, 217, 0.8);
}

@media (pointer: coarse) {

  .custom-cursor,
  #trail-canvas {
    display: none !important;
  }
}

/* ==========================================================================
   Entry Screen (Pulsing "нажми, чтобы войти")
   ========================================================================== */
#entry-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(13, 4, 26, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.85s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.85s;
}

#entry-screen.fading-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.entry-badge {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  animation: pulseBadge 3s infinite ease-in-out;
}

.entry-icon-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px var(--color-magenta));
}

.entry-title {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 122, 217, 0.8), 0 0 25px rgba(193, 63, 214, 0.6);
  animation: pulseText 2.4s infinite ease-in-out;
}

.entry-subtitle {
  font-family: var(--font-main);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  opacity: 0.85;
}

@keyframes pulseText {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
    text-shadow: 0 0 12px rgba(255, 122, 217, 0.8), 0 0 25px rgba(193, 63, 214, 0.6);
  }

  50% {
    transform: scale(1.04);
    opacity: 1;
    text-shadow: 0 0 20px rgba(255, 122, 217, 1), 0 0 40px rgba(193, 63, 214, 0.9), 0 0 60px rgba(107, 47, 191, 0.7);
  }
}

@keyframes pulseBadge {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.06);
  }
}

/* ==========================================================================
   Main App Container & Bio Card
   ========================================================================== */
#app {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 480px;
  opacity: 1;
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#app.app-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  pointer-events: none;
}

/* The Glassmorphism Card */
.bio-card {
  position: relative;
  width: 100%;
  border-radius: var(--card-radius);
  background: rgba(42, 15, 77, 0.52);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: var(--border-neon);
  box-shadow: 0 20px 50px rgba(13, 4, 26, 0.85),
    0 0 35px rgba(107, 47, 191, 0.35),
    inset 0 0 25px rgba(193, 63, 214, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  overflow: hidden;
}

.bio-card:hover {
  box-shadow: 0 25px 60px rgba(13, 4, 26, 0.9),
    0 0 45px rgba(193, 63, 214, 0.5),
    inset 0 0 30px rgba(255, 122, 217, 0.18);
}

/* Neon Glow Outline Gradient */
.card-glow-border {
  position: absolute;
  inset: -1px;
  border-radius: var(--card-radius);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 122, 217, 0.55), rgba(193, 63, 214, 0.2) 40%, rgba(107, 47, 191, 0.6) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  pointer-events: none;
}

.card-inner {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ==========================================================================
   Card Top Bar: Glasses Motif + Status
   ========================================================================== */
.card-top-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.glasses-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(27, 8, 51, 0.65);
  border: 1px solid rgba(255, 122, 217, 0.28);
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(193, 63, 214, 0.25);
}

.glasses-svg {
  width: 26px;
  height: 14px;
  filter: drop-shadow(0 0 4px var(--color-pink));
}

.school-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-pink-light);
  text-transform: uppercase;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(13, 4, 26, 0.55);
  border-radius: 20px;
  border: 1px solid rgba(107, 47, 191, 0.3);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 8px #39ff88;
  animation: pulseDot 2s infinite;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #c4f9d8;
  text-transform: uppercase;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.85);
  }
}

/* ==========================================================================
   Avatar with Rotating Magic Ring
   ========================================================================== */
.avatar-container {
  position: relative;
  width: 124px;
  height: 124px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-magic-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      var(--color-pink),
      var(--color-magenta),
      var(--color-purple),
      transparent 50%,
      var(--color-purple),
      var(--color-magenta),
      var(--color-pink));
  filter: blur(3px);
  animation: spinRing 8s linear infinite;
  opacity: 0.85;
}

@keyframes spinRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.avatar-box {
  position: relative;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-indigo-dark);
  border: 2px solid rgba(255, 122, 217, 0.6);
  box-shadow: 0 0 20px rgba(193, 63, 214, 0.4), inset 0 0 10px rgba(107, 47, 191, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.avatar-container:hover .avatar-image {
  transform: scale(1.08);
}

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sci-twi-avatar-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Identity: Nick, Verified Badge & Realname
   ========================================================================== */
.identity-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.nick-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nick-text {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 15%, var(--color-pink-light) 60%, var(--color-pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 122, 217, 0.65));
}

.verified-sparkle {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sparkle-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 6px var(--color-pink));
  animation: pulseSparkle 3s ease-in-out infinite;
}

@keyframes pulseSparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.18) rotate(45deg);
    filter: drop-shadow(0 0 10px var(--color-pink-light));
  }
}

.realname-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.realname {
  font-weight: 500;
}

.dot-separator {
  color: var(--color-magenta);
}

.role-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-pink);
  background: rgba(193, 63, 214, 0.15);
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(193, 63, 214, 0.3);
}



/* ==========================================================================
   Tags / Badges
   ========================================================================== */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.bio-tag {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 16px;
  background: rgba(61, 22, 109, 0.45);
  color: var(--color-text-secondary);
  border: 1px solid rgba(193, 63, 214, 0.25);
  transition: all 0.25s ease;
}

.bio-tag:hover {
  background: rgba(193, 63, 214, 0.28);
  border-color: var(--color-pink);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(193, 63, 214, 0.3);
}

/* ==========================================================================
   Links Section (guns.lol / e-z.bio styled buttons)
   ========================================================================== */
.links-section {
  width: 100%;
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 18px;
  border-radius: 16px;
  background: rgba(27, 8, 51, 0.72);
  border: 1px solid rgba(193, 63, 214, 0.32);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Glass Sheen Swipe Effect */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 217, 0.2), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.link-btn:hover::before {
  left: 180%;
}

.link-btn:hover {
  background: rgba(61, 22, 109, 0.82);
  border-color: var(--color-pink);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px rgba(193, 63, 214, 0.45), 0 0 15px rgba(255, 122, 217, 0.3);
}

.link-btn:active {
  transform: translateY(0) scale(0.99);
}

.link-btn-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.link-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(193, 63, 214, 0.2);
  border: 1px solid rgba(255, 122, 217, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-pink-light);
  transition: transform 0.25s ease, background 0.25s ease;
}

.link-btn:hover .link-icon-box {
  transform: scale(1.1);
  background: rgba(193, 63, 214, 0.4);
  color: #ffffff;
}

.link-svg {
  width: 22px;
  height: 22px;
}

.link-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.link-title {
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.link-subtitle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--color-text-muted);
  transition: color 0.25s ease;
}

.link-btn:hover .link-subtitle {
  color: var(--color-pink-light);
}

.link-arrow {
  color: var(--color-text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.arrow-svg {
  width: 18px;
  height: 18px;
}

.link-btn:hover .link-arrow {
  color: var(--color-pink);
  transform: translateX(4px);
}

/* ==========================================================================
   Music Player Widget
   ========================================================================== */
.music-widget {
  width: 100%;
  background: rgba(18, 5, 36, 0.78);
  border: 1px solid rgba(107, 47, 191, 0.45);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.25);
}

.media-main-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-btn,
.mute-btn {
  background: transparent;
  border: none;
  color: var(--color-pink-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.primary-play-btn {
  background: rgba(193, 63, 214, 0.25);
  border: 1px solid rgba(255, 122, 217, 0.35);
  box-shadow: 0 0 10px rgba(193, 63, 214, 0.3);
}

.primary-play-btn:hover {
  background: rgba(193, 63, 214, 0.45) !important;
  border-color: var(--color-pink);
  box-shadow: 0 0 16px rgba(255, 122, 217, 0.6);
}

.audio-btn:hover,
.mute-btn:hover {
  color: #ffffff;
  background: rgba(193, 63, 214, 0.25);
  transform: scale(1.12);
}

.audio-btn:active,
.mute-btn:active {
  transform: scale(0.95);
}

.audio-svg {
  width: 18px;
  height: 18px;
}

.audio-track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.track-notes-icon {
  font-size: 0.8rem;
}

.track-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Equalizer Bars */
.visualizer-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 10px;
}

.visualizer-bars .bar {
  width: 3px;
  height: 3px;
  background: var(--color-pink);
  border-radius: 2px;
  transition: height 0.15s ease;
}

.visualizer-bars.playing .bar {
  animation: eqBounce 1.2s infinite ease-in-out alternate;
}

.visualizer-bars.playing .bar-1 {
  animation-delay: 0.1s;
}

.visualizer-bars.playing .bar-2 {
  animation-delay: 0.35s;
}

.visualizer-bars.playing .bar-3 {
  animation-delay: 0.6s;
}

.visualizer-bars.playing .bar-4 {
  animation-delay: 0.2s;
}

.visualizer-bars.playing .bar-5 {
  animation-delay: 0.45s;
}

@keyframes eqBounce {
  0% {
    height: 3px;
    opacity: 0.4;
  }

  100% {
    height: 10px;
    opacity: 1;
    background: var(--color-magenta);
  }
}

/* Volume Slider */
.volume-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 54px;
  height: 4px;
  background: rgba(107, 47, 191, 0.4);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-pink);
  box-shadow: 0 0 8px var(--color-pink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

#volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: #ffffff;
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-pink);
  border: none;
  box-shadow: 0 0 8px var(--color-pink);
  cursor: pointer;
}

/* Timeline Scrubber Row */
.timeline-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}

.time-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-muted);
  min-width: 32px;
}

#current-time {
  text-align: right;
  color: var(--color-pink-light);
}

.scrubber-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

#timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(107, 47, 191, 0.45);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-pink);
  box-shadow: 0 0 10px var(--color-pink);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

#timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  background: #ffffff;
  box-shadow: 0 0 14px var(--color-pink-light);
}

#timeline-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-pink);
  border: none;
  box-shadow: 0 0 10px var(--color-pink);
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.card-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  opacity: 0.75;
  margin-top: -6px;
}

/* ==========================================================================
   Responsive Adaptations (from 360px)
   ========================================================================== */
@media (max-width: 440px) {
  body {
    padding: 16px 12px;
  }

  .card-inner {
    padding: 22px 18px;
    gap: 16px;
  }

  .nick-text {
    font-size: 1.7rem;
  }

  .avatar-container {
    width: 110px;
    height: 110px;
  }

  .avatar-box {
    width: 102px;
    height: 102px;
  }

  .typewriter-box {
    font-size: 0.78rem;
    padding: 8px 10px;
  }

  .volume-controls #volume-slider {
    width: 46px;
  }
}

/* ==========================================================================
   prefers-reduced-motion (Accessibility)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .magic-seal-container,
  .flying-books-layer {
    display: none !important;
  }

  .bio-card {
    transform: none !important;
  }
}