/* Simon Says Game Play Page Styles */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background: white;
  min-height: 100vh;
  color: #333;
}

.header {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.backButton {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.backButton:hover {
  background: linear-gradient(135deg, #4B5563, #374151);
  transform: translateY(-2px);
}

.title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  background: linear-gradient(135deg, #9333EA, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gameMode {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

/* Game Stats */
.gameStats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.stat {
  background: #f8f9fa;
  padding: 15px 25px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  color: #2d3748;
  min-width: 100px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.statLabel {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}

.statValue {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #9333EA;
}

/* Sound Control */
.soundControl {
  text-align: center;
  margin-bottom: 20px;
}

.soundToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.soundToggle input[type="checkbox"] {
  transform: scale(1.2);
  cursor: pointer;
}

/* Status Message */
.statusMessage {
  margin-bottom: 30px;
  padding: 15px;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border-radius: 12px;
  border-left: 4px solid #9333EA;
}

.statusMessage p {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  color: #374151;
}

/* Game Board */
.gameBoard {
  display: grid;
  gap: 25px;
  margin: 30px auto;
  max-width: 700px;
  perspective: 1000px;
  padding: 20px;
}

.grid4 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 500px;
}

.grid7 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 600px;
}

.grid10 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 700px;
}

.gameButton {
  aspect-ratio: 1;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transform-style: preserve-3d;
}

.gameButton:hover:not(:disabled) {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.gameButton:active:not(:disabled) {
  transform: translateY(-2px) scale(0.98);
}

.gameButton:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.gameButton.active {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.3);
  animation: pulse 0.4s ease;
}

@keyframes pulse {
  0%, 100% { transform: translateY(-5px) scale(1.1); }
  50% { transform: translateY(-8px) scale(1.15); }
}

.buttonLabel {
  font-size: 1rem;
  font-weight: bold;
}

/* Action Buttons */
.actionButtons {
  margin: 30px 0;
}

.startButton {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.startButton:hover:not(:disabled) {
  background: linear-gradient(135deg, #16A34A, #15803D);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.startButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Keyboard Info */
.keyboardInfo {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.keyboardInfo h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1rem;
}

.keyboardInfo p {
  margin: 0;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }
  
  .header {
    gap: 10px;
  }
  
  .backButton {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .gameMode {
    font-size: 1rem;
  }
  
  .gameStats {
    gap: 15px;
  }
  
  .stat {
    padding: 12px 20px;
    min-width: 80px;
  }
  
  .gameBoard {
    gap: 18px;
    padding: 15px;
    max-width: 400px;
  }
  
  .grid4 {
    max-width: 320px;
  }
  
  .grid7 {
    max-width: 380px;
  }
  
  .grid10 {
    max-width: 400px;
  }
  
  .gameButton {
    min-height: 90px;
    font-size: 0.9rem;
  }
  
  .buttonLabel {
    font-size: 0.9rem;
  }
  
  .startButton {
    padding: 12px 30px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  
  .gameBoard {
    gap: 8px;
    max-width: 320px;
    padding: 10px;
  }
  
  .grid4 {
    max-width: 260px;
  }
  
  .grid7 {
    max-width: 300px;
  }
  
  .grid10 {
    max-width: 320px;
  }
  
  .gameButton {
    min-height: 70px;
    border-radius: 15px;
    font-size: 0.85rem;
  }
  
  .buttonLabel {
    font-size: 0.75rem;
    font-weight: 900;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 1);
  }
  
  .header {
    margin-bottom: 15px;
    gap: 8px;
  }
  
  .title {
    font-size: 1.6rem;
  }
  
  .gameStats {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .stat {
    padding: 8px 12px;
    min-width: 70px;
  }
}