/* Sound-кнопка для промо-ролика с озвучкой на 3D-ноутбуке.
   Видео и так автостартует без звука; кнопка только включает аудио-дорожку.
   Позиция — статичный CSS относительно .about2-scene-wrap:
   desktop — в зазоре между блоком карточек и ноутбуком (колонка-gap 60px),
   mobile (<1100px, grid → flex-column, зазора между колонками нет) —
   правый верхний угол экрана ноутбука. */

.screen-play-btn {
  position: absolute;
  top: 50%;
  left: -30px;
  width: clamp(38px, 5.5vw, 50px);
  height: clamp(38px, 5.5vw, 50px);
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
  opacity: 1;
  pointer-events: auto;
}

.screen-play-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 30px rgba(80, 60, 255, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.10) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  transform: translate(-50%, -50%) scale(1.08);
}

.screen-play-btn:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.screen-play-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.7);
}

.screen-play-btn__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(140, 110, 255, 0.45);
  animation: screenPlayPulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes screenPlayPulse {
  0%   { transform: scale(0.92); opacity: 0.7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.screen-play-btn__icon {
  width: 48%;
  height: 48%;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

.screen-play-btn__mute-slash {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.screen-play-btn.is-muted .screen-play-btn__mute-slash {
  opacity: 1;
}

.screen-play-btn.is-muted .screen-play-btn__wave {
  opacity: 0.35;
}

@media (prefers-reduced-motion: reduce) {
  .screen-play-btn__ring { animation: none; }
  .screen-play-btn { transition: opacity 0.2s ease; }
}

/* Mobile: grid превращается в flex-column, зазора между cards и scene
   больше нет — переносим кнопку на угол экрана ноутбука. */
@media (max-width: 1100px) {
  .screen-play-btn {
    top: 14px;
    left: auto;
    right: 14px;
    transform: translate(0, 0);
  }
  .screen-play-btn:hover { transform: translate(0, 0) scale(1.08); }
  .screen-play-btn:active { transform: translate(0, 0) scale(0.96); }
  .screen-play-btn.is-hidden { transform: translate(0, 0) scale(0.7); }
}
