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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #1a2a6c, #2c3e50);
  color: white;
  min-height: 100vh;
  overflow: hidden;
}

/* Custom Spinner */
.arjs-loader {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0 auto;
}

.spinner:before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #5468ff;
  animation: loading-bounce 0.5s ease-in-out infinite alternate;
}

.spinner:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 7px;
  width: 45px;
  border-radius: 4px;
  box-shadow: 0 5px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 95px 0 #f2f2f2;
  animation: loading-step 1s ease-in-out infinite;
}

@keyframes loading-bounce {
  0% {
    transform: scale(1, 0.7);
  }

  40% {
    transform: scale(0.8, 1.2);
  }

  60% {
    transform: scale(1, 1);
  }

  100% {
    bottom: 140px;
  }
}

@keyframes loading-step {
  0% {
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 #f2f2f2,
      -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2;
  }

  100% {
    box-shadow: 0 10px 0 #f2f2f2, -35px 50px 0 #f2f2f2, -70px 90px 0 #f2f2f2,
      -70px 90px 0 rgba(0, 0, 0, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Info Panel */
.info-panel {
  position: fixed;
  bottom: 30px;
  left: 50%;
  background: #1e1e2f;
  color: #fff;
  padding: 25px 25px;
  border-radius: 10px;
  font-family: "Poppins", Arial, sans-serif;
  text-align: left;
  z-index: 999;
  max-width: 400px;
  width: 90%;
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow: hidden;
}

/* Info Panel Hover Effect */
.info-panel:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -16px;
  right: -16px;
  background: #232336;
  height: 32px;
  width: 32px;
  border-radius: 32px;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 0.35s ease-out;
}

.go-corner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 2.2em;
  height: 2.2em;
  overflow: hidden;
  top: 0;
  right: 0;
  background: #2a2a40;
  border-radius: 0 4px 0 32px;
}

.go-close {
  margin-top: -4px;
  margin-right: -4px;
  color: white;
  font-family: courier, sans;
}

.info-panel:hover:before {
  transform: scale(29);
}

.info-panel .small-desc {
  transition: all 0.5s ease-out;
}

.info-panel:hover .card-title {
  transition: all 0.5s ease-out;
}

.info-panel.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Header flex layout */
.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 204, 0, 0.3);
  padding-bottom: 6px;
}

/* Gun title */
.info-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #ffcc00;
  letter-spacing: 0.5px;
}

/* Close Button */
.close-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 30px;
  cursor: pointer;
}

/* Close icon */
.close-icon {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

/* Visible animation */
.info-panel.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Description */
.info-panel p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

/* Specs container */
.info-panel .specs {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
  justify-items: center;
  align-items: center;
}

/* Each spec card */
.info-panel .spec {
  background: #2a2a40;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #ffcc00;
  text-align: center;
  border: 1px solid rgba(255, 204, 0, 0.2);
  transition: all 0.3s ease;
}

.info-panel .spec:hover {
  background: #34344f;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
}

.watermark {
  position: fixed;
  top: 20px;
  left: 20px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-radius: 40px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.watermark::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #ff3b3b;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.7);
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Common button styles */
.icon-btn {
  position: fixed;
  right: 20px;
  background: #fbca1f;
  color: #1e1e1e;
  width: 55px;
  height: 55px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  z-index: 9999;
  outline: 0;
  border: 0;
  cursor: pointer;
  will-change: box-shadow, transform;
  background: radial-gradient(100% 100% at 100% 0%, #89e5ff 0%, #5468ff 100%);
  box-shadow: 0px 0.01em 0.01em rgb(45 35 66 / 40%),
    0px 0.3em 0.7em -0.01em rgb(45 35 66 / 30%),
    inset 0px -0.01em 0px rgb(58 65 111 / 50%);
  color: #fff;
  text-shadow: 0 1px 0 rgb(0 0 0 / 40%);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.icon-btn:hover {
  box-shadow: 0px 0.1em 0.2em rgb(45 35 66 / 40%),
    0px 0.4em 0.7em -0.1em rgb(45 35 66 / 30%), inset 0px -0.1em 0px #3c4fe0;
  transform: translateY(-0.1em);
}

.icon-btn:active {
  box-shadow: inset 0px 0.1em 0.6em #3c4fe0;
  transform: translateY(0em);
}

.info-icon {
  top: 20px;
}
.shoot-icon {
  top: 100px;
}
.reload-icon {
  top: 180px;
}

.fa-info,
.fa-gun,
.fa-rotate-right {
  color: white;
}
