:root {
  --primary-color: #6366f1;
  --card-bg: #ffffff;
  --text-color: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background:#6366f1;
  min-height: 100vh;
  display: flex; 
  justify-content: center;
  align-items: center;
  padding: 2rem;
  color: var(--text-color);
}

#game-container {
  width: 100%;
  max-width: 1000px;
  background-color: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
}

.screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  min-height: 60vh;
}

.hidden {
  display: none;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

#game-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 2rem;
}

.stat {
  background-color: #f3f4f6;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  width: 100px;
}

#target-container {
  margin-bottom: 2rem;
}

#target-face {
  font-size: 3rem;
  margin-top: 0.5rem;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#face-grid {
  display: grid;
  gap: 0.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
}

.face-item {
  aspect-ratio: 1/1;
  background-color: #f3f4f6;
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s, background-color 0.2s;
  font-size: 2rem;
}

.face-item:hover {
  transform: scale(1.05);
  background-color: #e5e7eb;
}

.face-item:active {
  transform: scale(0.95);
}

#final-time {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}