/* Safe area support for mobile devices with notches */
@supports (padding: max(0px)) {
  body {
    padding: max(env(safe-area-inset-top), 0px)
      max(env(safe-area-inset-right), 0px) max(env(safe-area-inset-bottom), 0px)
      max(env(safe-area-inset-left), 0px);
  }

  #ui {
    padding: max(env(safe-area-inset-top), 0px)
      max(env(safe-area-inset-right), 0px) max(env(safe-area-inset-bottom), 0px)
      max(env(safe-area-inset-left), 0px);
  }

  #stats {
    top: max(10px, calc(env(safe-area-inset-top) + 10px)) !important;
    left: max(10px, calc(env(safe-area-inset-left) + 10px)) !important;
    max-width: calc(
      100vw -
        max(
          20px,
          calc(env(safe-area-inset-left) + env(safe-area-inset-right) + 20px)
        )
    ) !important;
  }

  #timer {
    top: max(20px, calc(env(safe-area-inset-top) + 20px)) !important;
  }

  #weapons {
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px)) !important;
    left: max(20px, calc(env(safe-area-inset-left) + 20px)) !important;
  }

  #joystickOuter {
    bottom: calc(
      max(60px, calc(env(safe-area-inset-bottom) + 60px)) +
        env(safe-area-inset-bottom)
    ) !important;
  }
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
  background: #0a0a0a;
  color: white;
}

/* Intro Video Screen */
#introVideoScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.5s ease-in;
}

#introVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#introVideoScreen.loading {
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
}

#introVideoScreen.loading::before {
  content: "Loading intro video...";
  position: absolute;
  color: #00ffcc;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
  z-index: 1;
}

.skip-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  padding: 12px 30px;
  background: rgba(0, 255, 204, 0.8);
  color: #000;
  border: 2px solid #00ffcc;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.skip-btn:hover {
  background: #00ffcc;
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

:root {
  --vh: 1vh;
}

/* Intro Screen */
#introScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(
    var(--vh, 1vh) * 100
  ); /* Use custom property for mobile viewport height */
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.5s ease-in;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.game-logo {
  max-width: 200px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(0, 255, 204, 0.5));
  animation: logoFloat 3s ease-in-out infinite;
}

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

.game-title {
  font-size: 64px;
  font-weight: 900;
  color: #00ffcc;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8), 0 0 40px rgba(0, 255, 204, 0.5);
  margin-bottom: 10px;
  letter-spacing: 8px;
  animation: pulse 2s ease-in-out infinite;
}

.subtitle {
  font-size: 20px;
  color: #ff00ff;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.intro-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.intro-section h2 {
  color: #00ffcc;
  margin-bottom: 20px;
  font-size: 24px;
}

.controls-info {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.control-option {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  background: rgba(0, 255, 204, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 204, 0.3);
}

.control-option strong {
  color: #00ffcc;
  display: block;
  margin-bottom: 8px;
}

.control-option p {
  font-size: 14px;
  color: #ccc;
}

.info-text {
  font-size: 16px;
  color: #aaa;
  margin: 8px 0;
}

.button-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 30px 0 20px 0;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
  padding: 20px 50px;
  font-size: 20px;
  font-weight: 900;
  border: 3px solid #555;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  background: linear-gradient(145deg, #333 0%, #111 50%, #000 100%);
  color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5),
    inset 0 2px 5px rgba(255, 255, 255, 0.1);
  min-height: 60px;
}

.primary-btn::before {
  content: "▶";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #00ffcc;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}

.secondary-btn::before {
  content: "⚙";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #ff00ff;
  text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.primary-btn {
  background: linear-gradient(145deg, #00ffcc 0%, #00cc99 50%, #009977 100%);
  color: #000;
  box-shadow: 0 5px 20px rgba(0, 255, 204, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
}

.primary-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 255, 204, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, #00ff99 0%, #00dd88 50%, #00bb66 100%);
}

.secondary-btn {
  background: linear-gradient(145deg, #ff00ff 0%, #cc00cc 50%, #990099 100%);
  color: #fff;
  box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4),
    inset 0 2px 5px rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 0, 255, 0.6),
    inset 0 2px 5px rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg, #ff00cc 0%, #dd00bb 50%, #bb0099 100%);
}

.credits {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.credits p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 8px;
}

.credits a {
  color: #00ffcc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.credits a:hover {
  color: #00ff99;
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

/* Settings Menu */
#settingsMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* Use viewport height for mobile */
  background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  overflow-y: auto; /* Allow scrolling if content is too tall */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.intro-content {
  max-width: 800px;
  width: 90%;
  text-align: center;
  padding: 50px 40px;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
  border-radius: 30px 30px 20px 20px;
  border: 4px solid #333;
  box-shadow: 0 0 50px rgba(0, 255, 204, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: visible; /* Allow decorative elements to overflow but content to be visible */
}

/* Jukebox side speakers */
.intro-content::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  height: 60px;
  background: linear-gradient(145deg, #444 0%, #222 50%, #111 100%);
  border-radius: 40px 40px 0 0;
  border: 2px solid #555;
  box-shadow: inset 0 5px 10px rgba(0, 0, 0, 0.5);
}

/* Jukebox title display */
.intro-content::after {
  content: "AI HORDE";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  color: #00ffcc;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
  letter-spacing: 4px;
  font-family: "Courier New", monospace;
}

/* Speaker grilles on sides */
.intro-content {
  background-image: radial-gradient(
      circle at 15% 25%,
      rgba(0, 255, 204, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 25%,
      rgba(255, 0, 255, 0.1) 0%,
      transparent 50%
    ),
    linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

/* Jukebox title display */
.intro-content::after {
  content: "AI HORDE";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  font-weight: 900;
  color: #00ffcc;
  text-shadow: 0 0 20px rgba(0, 255, 204, 0.8);
  letter-spacing: 4px;
  font-family: "Courier New", monospace;
}

.setting-group {
  margin: 25px 0;
}

.setting-group h3 {
  color: #00ffcc;
  font-size: 18px;
  margin-bottom: 15px;
}

.control-schemes {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.control-scheme-option {
  flex: 1;
  min-width: 100px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.control-scheme-option:has(input:checked) {
  background: rgba(0, 255, 204, 0.2);
  border-color: #00ffcc;
}

.control-scheme-option input {
  display: none;
}

.control-scheme-option span {
  color: #fff;
  font-weight: 600;
}

#qualitySelect {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

#qualitySelect option {
  background: #1a1a2a;
  color: #fff;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}
#ui {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}
#stats {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(20, 20, 20, 0.8)
  );
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

/* Mobile optimizations for intro screen */
@media (max-width: 768px) {
  #introScreen {
    align-items: flex-start; /* Align to top instead of center */
    padding: 20px 0; /* Add vertical padding */
  }

  .intro-content {
    max-width: 95vw;
    width: 95vw;
    padding: 20px;
    margin: 0 auto;
    max-height: none; /* Remove max-height restriction to allow all content to show */
    overflow-y: visible; /* Ensure content is visible */
  }

  .game-title {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .intro-section {
    margin: 15px 0;
    padding: 15px;
  }

  .intro-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .controls-info {
    gap: 8px;
    margin-bottom: 15px;
  }

  .control-option {
    min-width: 120px;
    padding: 10px;
  }

  .control-option p {
    font-size: 12px;
  }

  .info-text {
    font-size: 14px;
    margin: 6px 0;
  }

  .button-group {
    flex-direction: column;
    gap: 12px;
    margin: 15px 0 10px 0;
  }

  .primary-btn,
  .secondary-btn {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 48px;
    width: 100%;
  }

  .credits {
    margin-top: 15px;
    padding-top: 15px;
  }
}

/* Mobile optimizations */
@media (max-width: 768px) {
  #stats {
    top: 5px;
    left: 5px;
    padding: 8px 12px;
    font-size: 12px;
    max-width: calc(100vw - 10px);
  }

  .stat-line {
    margin: 4px 0;
    font-size: 11px;
  }

  #timer {
    font-size: 20px;
    padding: 6px 14px;
  }

  #weapons {
    bottom: 5px;
    left: 5px;
    padding: 8px 12px;
    max-width: calc(50vw - 10px);
    font-size: 11px;
  }

  #levelUpModal {
    padding: 20px;
    max-width: 95vw;
    max-height: 80vh;
    overflow-y: auto;
  }

  #gameOver {
    padding: 30px;
    max-width: 95vw;
    max-height: 80vh;
  }

  .upgrade-option {
    padding: 15px;
    margin: 8px 0;
  }

  .upgrade-title {
    font-size: 16px;
  }

  .upgrade-desc {
    font-size: 13px;
  }
}

/* Mobile settings optimizations */
@media (max-width: 768px) {
  .settings-content {
    max-width: 95vw;
    width: 95vw;
    padding: 20px;
    margin: 10px auto;
    max-height: none; /* Remove max-height restriction */
    overflow-y: visible; /* Ensure content is visible */
  }

  .settings-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .setting-group h3 {
    font-size: 16px;
  }

  .control-scheme-option {
    min-width: 80px;
    padding: 10px 16px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  #stats {
    padding: 6px 10px;
    font-size: 10px;
    top: 2px;
    left: 2px;
  }

  .stat-line {
    margin: 3px 0;
    font-size: 10px;
  }

  #healthBar,
  #xpBar {
    width: 150px;
    height: 18px;
  }

  #timer {
    font-size: 16px;
    padding: 4px 10px;
  }

  #weapons {
    padding: 6px 10px;
    font-size: 10px;
    bottom: 2px;
    left: 2px;
  }

  #levelUpModal {
    padding: 15px;
  }

  #levelUpModal h2 {
    font-size: 24px;
  }

  #gameOver {
    padding: 20px;
  }

  #gameOver h2 {
    font-size: 28px;
  }

  #restartBtn {
    padding: 12px 30px;
    font-size: 18px;
  }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
  #stats {
    padding: 4px 8px;
    font-size: 10px;
  }

  #timer {
    font-size: 14px;
    padding: 3px 8px;
  }

  #weapons {
    padding: 4px 8px;
    font-size: 9px;
    max-width: calc(40vw - 5px);
  }

  #levelUpModal {
    padding: 10px;
    max-width: 90vw;
  }

  #gameOver {
    padding: 15px;
    max-width: 90vw;
  }
}

/* High DPI mobile devices */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #joystickOuter {
    border-width: 2px;
  }

  #joystickInner {
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}
.stat-line {
  margin: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.stat-label {
  font-weight: 600;
  color: #00ffcc;
  text-shadow: 0 0 5px rgba(0, 255, 204, 0.5);
}
#healthBar,
#xpBar {
  width: 200px;
  height: 24px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  margin: 10px 0;
  overflow: hidden;
  position: relative;
}
#healthFill {
  height: 100%;
  background: linear-gradient(90deg, #ff0040, #ff6b6b);
  width: 100%;
  transition: width 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 0, 64, 0.6);
}
#xpFill {
  height: 100%;
  background: linear-gradient(90deg, #00ff88, #66ffaa);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}
#timer {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.3);
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.8),
    rgba(40, 40, 40, 0.6)
  );
  padding: 10px 30px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
#weapons {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.9),
    rgba(20, 20, 20, 0.8)
  );
  padding: 15px;
  border-radius: 12px;
  border: 2px solid #ff00ff;
  max-width: 300px;
}
.weapon-item {
  margin: 5px 0;
  font-size: 13px;
  color: #ffcc00;
  display: flex;
  align-items: center;
  gap: 5px;
}
.evolution-ready {
  animation: pulse 1s infinite;
  color: #00ff00 !important;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
#eventNotification {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b00, #ffaa00);
  padding: 15px 30px;
  border-radius: 20px;
  border: 3px solid #fff;
  font-size: 20px;
  font-weight: bold;
  display: none;
  animation: slideDown 0.5s ease;
  box-shadow: 0 5px 30px rgba(255, 107, 0, 0.5);
}
@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}
#levelUpModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 30px;
  border-radius: 20px;
  border: 3px solid #00ffcc;
  display: none;
  text-align: center;
  z-index: 1000;
  pointer-events: all;
  box-shadow: 0 0 50px rgba(0, 255, 204, 0.5);
  animation: levelUpPop 0.3s ease;
}
@keyframes levelUpPop {
  from {
    transform: translate(-50%, -50%) scale(0);
  }
  to {
    transform: translate(-50%, -50%) scale(1);
  }
}
#levelUpModal h2 {
  margin: 0 0 20px 0;
  font-size: 32px;
  background: linear-gradient(90deg, #00ffcc, #ff00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(0, 255, 204, 0.5);
}
.upgrade-option {
  background: linear-gradient(135deg, #2a2a3e, #3a3a5e);
  margin: 10px 0;
  padding: 20px;
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.upgrade-option:hover {
  transform: scale(1.05);
  border-color: #00ffcc;
  box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}
.upgrade-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 5px;
}
.upgrade-desc {
  font-size: 14px;
  color: #aaa;
}
.rarity-common {
  border-color: #888 !important;
}
.rarity-rare {
  border-color: #0099ff !important;
  box-shadow: 0 0 15px rgba(0, 153, 255, 0.4) !important;
}
.rarity-epic {
  border-color: #ff00ff !important;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.5) !important;
}
.rarity-legendary {
  border-color: #ffaa00 !important;
  box-shadow: 0 0 30px rgba(255, 170, 0, 0.6) !important;
  animation: legendaryGlow 2s infinite;
}
@keyframes legendaryGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(255, 170, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 170, 0, 0.8);
  }
}
#gameOver {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #2a0a0a, #4a1a1a);
  padding: 40px;
  border-radius: 20px;
  border: 3px solid #ff0040;
  display: none;
  text-align: center;
  z-index: 1000;
  pointer-events: all;
  box-shadow: 0 0 50px rgba(255, 0, 64, 0.5);
  min-width: 400px;
  max-width: 90vw;
}

#gameOverVideo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 17px;
  opacity: 0.3;
  z-index: -1;
}

#gameOverContent {
  position: relative;
  z-index: 1;
}
#restartBtn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #00ff88, #00cc66);
  border: none;
  border-radius: 15px;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 20px;
  transition: transform 0.2s;
  pointer-events: all;
}
#restartBtn:hover {
  transform: scale(1.1);
}
.damage-number {
  position: fixed;
  color: #ffff00;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
  z-index: 200;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  animation: damageFloat 1s ease-out forwards;
}
@keyframes damageFloat {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(-50px) scale(0.5);
    opacity: 0;
  }
}
.telegraph {
  position: fixed;
  border: 3px solid #ff0040;
  background: rgba(255, 0, 64, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  animation: telegraphPulse 0.7s ease-out;
}
@keyframes telegraphPulse {
  from {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}
