body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

.game-container {
  position: relative;
  width: 100%;
  height: 380px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  user-select: none;
  cursor: crosshair;
}

.target {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4d4d 0%, #cc0000 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.4);
  z-index: 100;
  border: 2px solid #ffffff;
  transition: transform 0.1s ease;
}

.target:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 77, 77, 0.6);
}

.target:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.aim-instructions {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  transition: width 0.3s ease;
  border-radius: 5px;
}

.btn {
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.level-indicator {
  position: relative;
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin: 60px 0 80px 0;
}

.level-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #ef4444 100%);
  border-radius: 10px;
  transition: width 0.8s ease-out;
  overflow: hidden;
}

.level-marker {
  position: absolute;
  height: 20px;
  width: 2px;
  top: 0;
  transform: translateX(-50%);
  z-index: 10;
}

.level-marker:before {
  content: "";
  position: absolute;
  top: -15px;
  left: -8px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid currentColor;
}

.level-marker:after {
  content: attr(data-label);
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: bold;
  color: #374151;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#userLevelMarker {
  height: 20px;
  bottom: 0;
  top: auto;
  z-index: 10;
}

#userLevelMarker:before {
  top: auto;
  bottom: -15px;
  border-top: none;
  border-bottom: 12px solid currentColor;
}

#userLevelMarker:after {
  top: auto;
  bottom: -48px;
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
}

.hidden {
  display: none !important;
}

.test-complete-message {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-transition {
  animation: fadeTransition 0.8s ease-in-out;
}

@keyframes fadeTransition {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.animate-pulse {
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.share-button {
  color: white;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.share-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 타겟 나타나는 애니메이션 */
@keyframes targetAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.target-appear {
  animation: targetAppear 0.2s ease-out;
}

@media (max-width: 640px) {
  .game-container {
    height: 320px;
  }
  
  .target {
    width: 45px;
    height: 45px;
  }
  
  .level-indicator {
    margin: 50px 0 70px 0;
  }
  
  .level-marker:after {
    font-size: 11px;
    top: -35px;
    padding: 1px 4px;
  }
  
  #userLevelMarker:after {
    bottom: -40px;
  }
  
  .aim-instructions {
    font-size: 1rem;
    padding: 0 20px;
  }
} 