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

body {
  background: #05080f;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

.player-wrapper {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 20;
  background: rgba(34, 36, 39, 0.3);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 90%;
  opacity: 0.3;
  transition: opacity 0.4s ease;
}

.player-wrapper:hover,
.player-wrapper:focus-within {
  opacity: 1;
}

.player-wrapper audio {
  height: 32px;
  display: block;
  opacity: 0.8;
  flex-shrink: 0;
}

.home-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.home-link:hover,
.home-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-link:active {
  transform: scale(0.95);
}

.home-link:focus-visible,
.player-wrapper audio:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 3px;
}

.hint-play {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 1px;
  pointer-events: none;
  animation: pulseHint 3s ease-in-out infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.5; }
}

.hint-play.is-hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  #canvas {
    display: none;
  }
  .hint-play {
    animation: none;
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .player-wrapper {
    top: 10px;
    left: 10px;
    padding: 8px 14px;
    gap: 10px;
  }
  .player-wrapper audio {
    height: 24px;
    width: 140px;
  }
  .home-link {
    font-size: 1.4rem;
    width: 34px;
    height: 34px;
  }
  .hint-play {
    bottom: 20px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .player-wrapper {
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    gap: 8px;
  }
  .player-wrapper audio {
    height: 20px;
    width: 100px;
  }
  .home-link {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
  }
  .hint-play {
    bottom: 16px;
    font-size: 0.65rem;
  }
}
