/* Aiming Test Game Styles */
.main-text{
 margin-top: 100px;
}
.aim-section {
  max-width: 560px;
  margin: 60px auto 0 auto;
  padding: 28px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0));
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.74);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aim-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.65), rgba(255,255,255,0) 40%);
  pointer-events: none;
  opacity: 0.55;
}

.aim-goal {
  display: none;
}

.aim-score-current {
  color: var(--main-color);
  font-size: 1.35em;
  font-weight: 900;
}

.aim-board {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.aim-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.72);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  backdrop-filter: blur(8px);
}

.aim-overlay-card {
  width: min(440px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 22px 22px 20px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(0,0,0,0.35);
  position: relative;
}

.aim-overlay-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0d1020;
  letter-spacing: 0.01em;
}

.aim-overlay-subtitle {
  margin-top: 6px;
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(13, 16, 32, 0.75);
}

.aim-score-label {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.55);
}

.aim-score-label-tight {
  margin-top: 12px;
}

.aim-score {
  margin-top: 6px;
  font-size: 4.1rem;
  font-weight: 900;
  line-height: 1;
  color: #0d1020;
}

.aim-score-small {
  font-size: 2.4rem;
  opacity: 0.9;
}

.aim-overlay-btn {
  margin-top: 18px;
  padding: 12px 42px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  background: linear-gradient(90deg, #111 0%, #2a2f4a 100%);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  font-family: 'Poppins', sans-serif;
}

.aim-overlay-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 22px 52px rgba(0,0,0,0.28);
}

.aim-overlay-btn:active {
  transform: translateY(0px) scale(0.99);
}

.aim-level-overlay {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(12, 14, 22, 0.65);
  backdrop-filter: blur(6px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.aim-level-overlay-text {
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: 2.8rem;
  line-height: 1.1;
  text-shadow: 0 14px 40px rgba(0,0,0,0.35);
}


.aim-hud {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  z-index: 1;
}

.aim-stat {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 160px;
}

.aim-stat-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(13, 16, 32, 0.6);
}

.aim-stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0d1020;
  line-height: 1.1;
}

.aim-result {
  display: none;
}

/* Target (CSS recreation of the provided style) */

.aim-target {
  --target-size: 240px;
  position: absolute;
  width: var(--target-size);
  height: var(--target-size);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.aim-target-img,
.aim-target-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  user-select: none;
  -webkit-user-drag: none;
}

.aim-target-labels {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.aim-target-label {
  position: absolute;
  font-weight: 600;
  font-size: clamp(0.75rem, 2.2vw, 1rem);
  letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%);
}

.aim-target-label.l10 { left: 50%; top: 5%; }
.aim-target-label.l20 { left: 50%; top: 86%; }
.aim-target-label.l30 { left: 50%; top: 26%; }
.aim-target-label.l40 { left: 50%; top: 64%; }

.aim-target-label.l50 {
  left: 50%;
  top: 50%;
  font-size: clamp(0.85rem, 2.6vw, 1.15rem);
  color: #111;
  text-shadow: none;
}

/* SVG is a fallback if the PNG isn't present */
.aim-target-svg {
  display: none;
}

/* Marks */

.aim-mark {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

/* Floating score popup */

.aim-float {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  animation: aimFloatScore 700ms ease-out forwards;
}

@keyframes aimFloatScore {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -55%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -135%) scale(1.55);
  }
}

/* Scope (CSS recreation of the provided style) */

.aim-scope {
  position: absolute;
  width: 230px;
  height: 230px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}

.aim-scope-img,
.aim-scope-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.aim-scope-svg {
  display: none;
}

.playful-tip {
    margin-top: 10px;
    font-size: 1rem;
    color: #000000;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 600px) {
  .main-text {
      margin-top: 60px;
  }
  .aim-section {
      max-width: 90%;
      margin: 20px auto 0 auto;
      padding: 12px 14px;
  }
  .aim-board {
    height: 390px;
  }

  .aim-target {
    --target-size: 220px;
  }

  .aim-scope {
    width: 215px;
    height: 215px;
  }
}
