/* Template Game Styles */

.template-game {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.game-area {
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.game-board {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.game-board h2 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 2.5em;
  font-weight: 700;
}

.game-board p {
  margin: 0 0 30px 0;
  color: #666;
  font-size: 1.1em;
}

.game-status {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  gap: 20px;
}

.status-item {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  flex: 1;
}

.status-item .label {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.status-item .value {
  display: block;
  font-size: 2em;
  font-weight: 700;
  color: #333;
}

.game-actions {
  margin: 30px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 160px;
}

.game-btn:hover:not(:disabled) {
  background: #5a6fd8;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.game-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.game-btn.start-btn {
  background: #28a745;
  font-size: 1.2em;
  padding: 18px 36px;
}

.game-btn.start-btn:hover {
  background: #218838;
  box-shadow: 0 8px 16px rgba(40, 167, 69, 0.3);
}

.game-info {
  margin: 30px 0 0 0;
  padding: 20px;
  background: #e3f2fd;
  border-radius: 10px;
  border-left: 4px solid #2196f3;
}

.game-info p {
  margin: 0;
  color: #1976d2;
  font-weight: 500;
}

.game-end {
  background: #f0f8ff;
  border-radius: 12px;
  padding: 30px;
}

.game-end h3 {
  margin: 0 0 15px 0;
  color: #2e7d32;
  font-size: 1.8em;
}

.game-end p {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.2em;
}

.game-end strong {
  color: #2e7d32;
  font-size: 1.3em;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .game-area {
    padding: 10px;
  }
  
  .game-board {
    padding: 20px;
  }
  
  .game-board h2 {
    font-size: 2em;
  }
  
  .game-status {
    flex-direction: column;
    gap: 15px;
  }
  
  .status-item .value {
    font-size: 1.5em;
  }
  
  .game-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .game-btn {
    width: 100%;
    max-width: 280px;
  }
}