/* Hədəf Cəm Oyunu Xüsusi Stilləri */

.game-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.stat-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-box.timer-urgent {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #F87171;
  animation: pulseGlow 1s infinite;
}

.combo-badge {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
  font-weight: 900;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 1rem;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  animation: popIn 0.3s ease;
}

/* Target Circle */
.target-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.target-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(79, 70, 229, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.target-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.8;
  color: #E0E7FF;
}

.target-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

.sum-indicator {
  font-size: 1.25rem;
  font-weight: 800;
  color: #C7D2FE;
  transition: color 0.2s ease;
}

.sum-indicator.over {
  color: var(--error-color);
}

/* 4x4 Grid */
.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 1;
}

.tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tile:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.tile:active {
  transform: scale(0.95);
}

.tile.selected {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.6);
}

.tile.error {
  background: linear-gradient(135deg, var(--error-color), var(--error-hover));
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-height: 700px) {
  .target-circle { width: 90px; height: 90px; }
  .target-value { font-size: 2rem; }
  .grid-container { gap: 0.5rem; }
  .tile { font-size: 1.4rem; }
}
