body.fraxtanoid-pointer-active,
body.fraxtanoid-pointer-active * {
  cursor: none !important;
}
body.fraxtanoid-pointer-active .fraxtanoid-wrapper,
body.fraxtanoid-pointer-active .fraxtanoid-wrapper * {
  touch-action: none !important;
}
canvas#arkanoid {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16; /* Formato vertical en todas las resoluciones */
  max-width: 100%;
  max-height: calc(100vh - 40px); /* Aprovechar al máximo la altura */
  background: linear-gradient(180deg, rgba(15, 15, 25, 0.9), rgba(10, 10, 20, 0.9));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  touch-action: none;
  transition: width 0.3s ease, height 0.3s ease; /* Transición suave al cambiar tamaño */
}

/* En desktop, limitar el ancho para que no quede demasiado grande */
@media (min-width: 769px) {
  canvas#arkanoid {
    max-width: 70vh; /* Limitar ancho basado en altura de ventana */
    margin: 0 auto;
  }
}

/* En móvil mantener el mismo formato vertical */
@media (max-width: 768px) {
  canvas#arkanoid {
    max-height: calc(100vh - 20px);
  }
}

.game-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto; /* Centrar en desktop */
}
.game-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.canvas-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 6;
  pointer-events: none;
}
.canvas-controls button {
  pointer-events: auto;
}
.canvas-controls .btn-link {
  text-decoration: none;
  font-size: 1.05rem;
}

/* 💣 Controles de bomba (izquierda siempre visible) */
.bomb-controls-left {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 6;
  pointer-events: none;
  display: block;
}

.bomb-controls-left button {
  pointer-events: auto;
}

/* ↻🏠 Stack vertical (reiniciar + home) */
.vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 6, 14, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 7;
}
.start-overlay.hidden {
  display: none;
}
.start-card {
  text-align: center;
  padding: 2.5rem 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(720px 240px at 10% -120px, rgba(123, 92, 255, 0.22), transparent),
    radial-gradient(720px 240px at 90% -120px, rgba(0, 200, 255, 0.18), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 20px 60px rgba(4, 6, 16, 0.55);
}
/* 🎮 Título Animado Espectacular */
.start-title-container {
  position: relative;
  margin-bottom: 1.5rem;
  isolation: isolate;
}

.start-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
  white-space: nowrap;
}

/* Mobile: Reducir tamaño para que quepa sin partir */
@media (max-width: 640px) {
  .start-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    letter-spacing: 0.1em;
  }
}

.start-title-animated {
  /* Fallback color for browsers without clip support */
  color: #fff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(87, 115, 255, 1),
    0 0 20px rgba(255, 0, 110, 0.8),
    0 0 30px rgba(139, 92, 246, 0.6);
  
  /* Gradient effect for supported browsers */
  background: linear-gradient(
    90deg,
    #00f0ff 0%,
    #5773ff 25%,
    #ff006e 50%,
    #ffbe0b 75%,
    #00f0ff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 3s linear infinite, titleFloat 4s ease-in-out infinite;
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
  .start-title-animated {
    background: none;
    -webkit-text-fill-color: initial;
    color: #fff;
  }
}

.title-letter {
  display: inline-block;
  animation: letterBounce 2s ease-in-out infinite;
}

.title-letter:nth-child(1) { animation-delay: 0s; }
.title-letter:nth-child(2) { animation-delay: 0.1s; }
.title-letter:nth-child(3) { animation-delay: 0.2s; }
.title-letter:nth-child(4) { animation-delay: 0.3s; }
.title-letter:nth-child(5) { animation-delay: 0.4s; }
.title-letter:nth-child(6) { animation-delay: 0.5s; }
.title-letter:nth-child(7) { animation-delay: 0.6s; }
.title-letter:nth-child(8) { animation-delay: 0.7s; }
.title-letter:nth-child(9) { animation-delay: 0.8s; }
.title-letter:nth-child(10) { animation-delay: 0.9s; }

.title-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse,
    rgba(87, 115, 255, 0.3) 0%,
    rgba(255, 0, 110, 0.2) 50%,
    transparent 70%
  );
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes titleShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

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

@keyframes letterBounce {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}
.start-button {
  padding: 0.85rem 3.2rem;
  font-size: 1.05rem;
}
.start-button::after {
  content: '▶';
  margin-left: 0.65rem;
  font-size: 1.2rem;
}
.mode-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(255, 190, 11, 0.4);
}

/* 🎮 Botones Compactos */
.mode-buttons {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.mode-button-compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  font-size: 0.95rem;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: auto;
  justify-content: flex-start;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.mode-button-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.mode-button-compact:hover::before {
  left: 100%;
}

.mode-button-compact:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(123, 92, 255, 0.5);
}

.mode-button-boss.mode-button-compact:hover {
  box-shadow: 0 12px 40px rgba(255, 92, 92, 0.5);
}

.mode-button-compact .mode-icon {
  font-size: 2rem;
  margin-bottom: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px currentColor);
}

.mode-button-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.mode-button-compact .mode-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mode-button-compact .mode-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}

/* 📱 Mobile: Stack vertical */
@media (max-width: 640px) {
  .mode-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .mode-button-compact {
    padding: 0.85rem 1.25rem;
  }
  
  .mode-button-compact .mode-icon {
    font-size: 1.75rem;
  }
  
  .mode-button-compact .mode-name {
    font-size: 1rem;
  }
  
  .mode-button-compact .mode-desc {
    font-size: 0.7rem;
  }
}
.meta-small {
  color: rgba(207, 216, 255, 0.7);
  font-size: 0.9rem;
}
.empowerment-message {
  position: relative;
  margin: 1.25rem auto 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  color: #f1f5ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.16, 0.84, 0.44, 1);
  text-align: center;
  text-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}
.empowerment-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Leaderboard polish */
#leaderboard-section table {
  border-collapse: separate;
  border-spacing: 0 6px;
}
#leaderboard-section tbody tr {
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.16s ease, background 0.16s ease;
}
#leaderboard-section tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}
#leaderboard-section th,
#leaderboard-section td {
  padding-left: 14px;
  padding-right: 14px;
  border: none;
}
#btn-save-score[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.lb-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  z-index: 2147483646;
  pointer-events: none;
}
.lb-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 20, 0.74);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.lb-modal__panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: min(100vh);
  overflow-y: auto;
  z-index: 1;
  pointer-events: auto;
}
@supports (overscroll-behavior: contain) {
  .lb-modal__panel {
    overscroll-behavior: contain;
  }
}
.lb-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.06)
  );
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.lb-modal__close:hover {
  transform: translateY(-1px);
}
.lb-modal__close:active {
  transform: translateY(0);
}
/* Game-like glass panels */
.panel-glass {
  background:
    radial-gradient(900px 300px at 10% -120px, rgba(123, 92, 255, 0.12), transparent),
    radial-gradient(900px 300px at 90% -120px, rgba(0, 200, 255, 0.12), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
#leaderboard-section {
  position: relative;
  max-height: auto;
  overflow: hidden;
}
#leaderboard-section .leaderboard-scroll {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
#leaderboard-section::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background:
    repeating-linear-gradient(90deg, rgba(109, 124, 255, 0.12) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(180deg, rgba(109, 124, 255, 0.12) 0 1px, transparent 1px 40px);
  pointer-events: none;
}
#leaderboard-section::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.25), transparent 60%),
    radial-gradient(2px 2px at 40% 80%, rgba(255, 255, 255, 0.18), transparent 60%),
    radial-gradient(2px 2px at 80% 30%, rgba(255, 255, 255, 0.22), transparent 60%),
    radial-gradient(2px 2px at 65% 60%, rgba(255, 255, 255, 0.2), transparent 60%);
  background-size: 200% 200%;
  animation: floatDots 22s linear infinite;
  pointer-events: none;
}
@keyframes floatDots {
  to {
    background-position: 200% 200%;
  }
}
.panel-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff, rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #9aa5ff, #ff7ad9);
  box-shadow: 0 0 12px rgba(154, 165, 255, 0.53);
  display: inline-block;
}
.btn-neo {
  background: linear-gradient(135deg, #7c4dff, #d500f9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(127, 67, 255, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn-neo:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(127, 67, 255, 0.35);
}
.btn-neo:active {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(127, 67, 255, 0.25);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 18, 35, 0.22);
  color: rgba(240, 244, 255, 0.85);
  font-size: 1.1rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-ghost:hover {
  background: rgba(28, 32, 60, 0.35);
  box-shadow: 0 6px 18px rgba(10, 12, 30, 0.35);
}
.btn-ghost:active {
  transform: scale(0.94);
}

/* Leaderboard medals + highlight */
.medal-1 {
  color: #ffd700;
}
.medal-2 {
  color: #c0c0c0;
}
.medal-3 {
  color: #cd7f32;
}
.lb-highlight {
  outline: 2px solid rgba(127, 67, 255, 0.55);
}
/* Inputs aligned with glass style */
.glass-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  color: #fff;
  padding: 0.6rem 0.8rem;
  outline: none;
  width: 100%;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.glass-input:focus {
  border-color: rgba(127, 67, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(127, 67, 255, 0.2);
}
/* Table layout tweaks */
#leaderboard-section th:first-child,
#leaderboard-section td:first-child {
  width: 72px;
}
#leaderboard-section th:last-child,
#leaderboard-section td:last-child {
  text-align: right;
}
#leaderboard-section tbody td {
  height: 42px;
}

@media (max-width: 1024px) {
  .empowerment-message {
    top: 6%;
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  #leaderboard-section .leaderboard-scroll {
    max-height: 520px;
  }
  .fraxtanoid-wrapper {
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .fraxtanoid-wrapper .game-stage {
    width: 100vw;
    margin-left: calc(-1 * (50vw - 50%));
    margin-right: calc(-1 * (50vw - 50%));
    min-height: 92dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top)
      max(1rem, env(safe-area-inset-right))
      env(safe-area-inset-bottom)
      max(1rem, env(safe-area-inset-left));
  }
  canvas#arkanoid {
    aspect-ratio: 9 / 16;
    width: min(100vw, 520px);
    height: auto;
    border-radius: 0px;
    margin: 0;
    box-shadow: 0 18px 45px rgba(9, 10, 25, 0.55);
  }
  .game-stage::after {
    border-radius: 28px;
  }
  .empowerment-message {
    top: clamp(2.5%, 6vh, 5%);
    font-size: clamp(0.78rem, 2.4vw, 0.92rem);
    letter-spacing: 0.12em;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
  }
  .game-stage .game-ui {
    gap: 0.65rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .game-ui button {
    padding: 0.7rem 1.1rem;
  }
}
@media (max-width: 480px) {
  .empowerment-message {
    top: 5%;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
  }
  .meta-small {
    font-size: 0.75rem;
  }
}

/* Botón de bomba mobile */
.mobile-btn {
  pointer-events: auto;
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  -webkit-tap-highlight-color: transparent;
}

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

.mobile-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.mobile-btn-icon {
  display: inline-block;
  line-height: 1;
}

.mobile-btn-bomb {
  color: rgba(253, 230, 138, 0.95);
  width: 48px;
  height: 48px;
  position: relative;
}

.mobile-btn-bomb .mobile-btn-icon {
  font-size: 1.5rem;
  margin: 0;
}

.mobile-btn-counter {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.95);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid rgba(0, 0, 0, 0.9);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.mobile-btn-counter .bomb-count {
  font-weight: 700;
  line-height: 1;
}

.mobile-btn-counter .bomb-active-hint {
  display: none;
}

.mobile-btn-bomb.active {
  background: rgba(253, 230, 138, 0.15);
  border: 2px solid rgba(253, 230, 138, 0.6);
}

.mobile-btn-bomb.active .mobile-btn-counter {
  background: rgba(253, 230, 138, 0.95);
  color: rgba(22, 11, 2, 0.95);
  animation: bombPulse 0.8s ease-in-out infinite;
}

@keyframes bombPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.bomb-action-label {
  display: none;
}

.mobile-btn-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(253, 186, 116, 0.95);
  color: rgba(22, 11, 2, 0.9);
  font-size: 0.65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

/* Botón de bomba: ya controlado por .bomb-controls-left */

/* Ajustar en pantallas muy pequeñas */
@media (max-width: 480px) {
  .mobile-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .mobile-btn-badge {
    min-width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }
}

/* Animación de pulso para bomba activa */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(253, 186, 116, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(253, 186, 116, 0);
  }
}

/* 🎵 Controles de Música Minimalistas */
.music-control-btn {
  padding: 0.5rem;
  transition: all 0.2s ease;
}

.music-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.music-control-btn:active {
  transform: scale(0.95);
}

.music-control-btn.playing .play-icon {
  display: none;
}

.music-control-btn.playing .pause-icon {
  display: block !important;
}

.music-control-btn.playing {
  color: #667eea;
}

.music-icon, .volume-icon {
  display: block;
  transition: all 0.2s ease;
}

/* Contenedor de volumen */
.music-volume-container {
  position: relative;
  display: inline-block;
}

/* Popup flotante de volumen */
.volume-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0.75rem;
  background: rgba(20, 20, 30, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  z-index: 100;
  width: 85px;
  min-height: 200px;
}

.volume-popup.visible {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

/* Flechita del popup */
.volume-popup::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: rgba(20, 20, 30, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}

.volume-slider {
  -webkit-appearance: slider-vertical; /* WebKit */
  appearance: none;
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 0%, rgba(102, 126, 234, 0.3) 100%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transform: rotate(-90deg);
  transform-origin: center center;
  margin: 50px 0;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-slider::-moz-range-thumb:hover {
  transform: scale(1.3);
}

.volume-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.05em;
}

/* Responsive para controles de música */
@media (max-width: 640px) {
  .volume-popup {
    padding: 0.75rem 0.5rem;
    min-height: 180px;
    width: 75px;
  }
  
  .volume-slider {
    width: 80px;
    margin: 40px 0;
  }
  
  .volume-text {
    font-size: 0.65rem;
  }
}
