/* 게임 컨테이너 */
.games-container {
  display: flex;
  height: calc(100vh - 70px);
}

.game-content {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}

.game-header {
  background: rgba(0, 0, 0, 0.8);
  padding: 15px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
}

.game-title {
  font-size: 24px;
  font-weight: bold;
  color: #00ff88;
}

.game-stats {
  display: flex;
  margin-top: 20px;
  gap: 40px;
  font-size: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-label {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
}

.stat-value {
  font-size: 18px;
  font-weight: bold;
  color: #00ff88;
}

.game-area {
  flex: 1;
  position: relative;
  background: radial-gradient(
    circle at center,
    rgba(0, 255, 136, 0.1) 0%,
    transparent 70%
  );
  cursor: crosshair;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 700px;
  margin-top: 10px;
}

/* FPS 에임 게임 스타일 */
.target {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff4444, #cc0000);
  border: 3px solid #fff;
  cursor: pointer;
  animation: pulse 0.5s ease-in-out infinite alternate;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
  transition: transform 0.1s ease;
}

.target:hover {
  transform: scale(1.1);
}

.target::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
}

.target::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 68, 68, 1);
  }
}

.start-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(10px);
}

.start-title {
  font-size: 48px;
  font-weight: bold;
  color: #00ff88;
  margin-bottom: 20px;
  text-align: center;
}

.start-subtitle {
  font-size: 18px;
  color: #aaa;
  margin-bottom: 40px;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
}

.hit-effect {
  position: absolute;
  pointer-events: none;
  color: #00ff88;
  font-size: 20px;
  font-weight: bold;
  animation: hitEffect 0.8s ease-out forwards;
}

@keyframes hitEffect {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.5) translateY(-30px);
  }
}

.miss-effect {
  position: absolute;
  pointer-events: none;
  color: #ff4444;
  font-size: 18px;
  font-weight: bold;
  animation: missEffect 0.6s ease-out forwards;
}

@keyframes missEffect {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
  }
}

.game-over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  backdrop-filter: blur(15px);
}

.game-over-title {
  font-size: 36px;
  font-weight: bold;
  color: #00ff88;
  margin-bottom: 30px;
}

.final-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  text-align: center;
}

.final-stat {
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

.final-stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #00ff88;
  margin-bottom: 5px;
}

.final-stat-label {
  font-size: 14px;
  color: #aaa;
}

/* 반응속도 게임 스타일 */
.reaction-area {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 550px;
  font-size: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 15px;
  border: 2px solid rgba(0, 255, 136, 0.3);
}

.reaction-area.waiting {
  background: #ff4444;
}

.reaction-area.ready {
  background: #00ff88;
}

/* 메모리 게임 스타일 */
.memory-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.memory-instructions {
  text-align: center;
  margin-bottom: 30px;
  max-width: 500px;
}

.memory-instructions h3 {
  color: #00ff88;
  margin-bottom: 15px;
}

.memory-instructions p {
  color: #aaa;
  line-height: 1.6;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}

.memory-card {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 136, 0.3);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.memory-card:hover {
  border-color: #00ff88;
}

.memory-card.flipped {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
}

.memory-card.matched {
  background: rgba(0, 255, 136, 0.4);
  border-color: #00ff88;
}

.memory-controls {
  text-align: center;
  margin-top: 30px;
}

/* 색깔 맞추기 게임 스타일 */
.color-game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 30px;
  padding: 40px;
}

.color-instruction {
  font-size: 20px;
  color: #00ff88;
  font-weight: bold;
  margin-bottom: 10px;
}

.target-color {
  width: 150px;
  height: 150px;
  border-radius: 15px;
  border: 3px solid white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.color-option {
  width: 110px;
  height: 110px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
  border-color: #00ff88;
}
