/* ===== SEQUENCE MEMORY GAME ===== */

.sm-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.sm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
}

.sm-btn {
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  filter: brightness(0.7);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.sm-btn::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 40%;
  background: rgba(255,255,255,0.15);
  border-radius: 20px 20px 60% 60%;
  pointer-events: none;
}

.sm-btn:nth-child(1) { background: linear-gradient(135deg, #22c55e, #16a34a); }
.sm-btn:nth-child(2) { background: linear-gradient(135deg, #ef4444, #dc2626); }
.sm-btn:nth-child(3) { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.sm-btn:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #d97706); }

.sm-btn.lit {
  filter: brightness(1.4);
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255,255,255,0.3);
}

.sm-btn:hover:not(:disabled) {
  filter: brightness(1);
  transform: scale(1.02);
}

.sm-btn:active:not(:disabled) {
  transform: scale(0.95);
  filter: brightness(1.5);
}

.sm-btn:disabled {
  cursor: default;
}

.sm-message {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  min-height: 1.5em;
}

.sm-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 30px;
  padding: 8px 24px;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
  min-width: 140px;
}
